Skip to content

Commit d199677

Browse files
committed
fix fieldImage url if undefined
1 parent 8be80aa commit d199677

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fields/fieldImage.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
if (this.schema.preview !== false) {
1818
return {
1919
display: "block",
20-
"background-image": "url(" + this.value + ")"
20+
"background-image": this.value != null ? "url(" + this.value + ")" : "none"
2121
};
2222
} else {
2323
return {

0 commit comments

Comments
 (0)