Skip to content

Commit 874c067

Browse files
Merge pull request #465 from SwiftFiddle/f
Fix
2 parents b2fbd9c + a1729cd commit 874c067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Public/js/views/expression_field.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class ExpressionField extends EventDispatcher {
2929
}
3030

3131
set error(error) {
32-
if (error) {
32+
if (error.length) {
3333
let message = "";
3434
if (typeof error === "string" || error instanceof String) {
3535
const errorMessage = Utils.htmlSafe(error);

0 commit comments

Comments
 (0)