Skip to content

Commit ff1e2d4

Browse files
committed
chore fix: exp can be false
1 parent 686ec6e commit ff1e2d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resources/js/app/directives/richeditor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default {
8484
} else if (binding?.expression) {
8585
try {
8686
const exp = JSON.parse(binding.expression);
87-
toolbar = exp.join(' ');
87+
toolbar = exp ? exp.join(' ') : toolbar;
8888
} catch (e) {
8989
// do nothing
9090
}

0 commit comments

Comments
 (0)