Skip to content

Commit 6c4c378

Browse files
Merge pull request #7033 from getkirby/v5/fix/6992-redundant-image-data
Fix generating redundant image data in content files
2 parents 2d4968c + 0e628ac commit 6c4c378

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

panel/src/components/Forms/Field/FilesField.vue

+7-4
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,14 @@ export default {
5555
}
5656
}
5757
58-
await this.$panel.content.update({
59-
[this.name]: this.selected
60-
});
61-
58+
// send the input event
59+
// the content object gets updated
6260
this.onInput();
61+
62+
// the `$panel.content.update()` event sends
63+
// the updated form value object to the server
64+
this.$panel.content.update();
65+
6366
this.$events.emit("file.upload");
6467
this.$events.emit("model.update");
6568
}

0 commit comments

Comments
 (0)