Prevent widget value serialization for media preview widgets (#3370)

This commit is contained in:
Chenlei Hu
2025-04-09 17:01:02 -04:00
committed by GitHub
parent 2dc33b1eb9
commit dc9ea44f3a
6 changed files with 27 additions and 6 deletions

View File

@@ -238,9 +238,11 @@ class ImagePreviewWidget implements ICustomWidget {
readonly type: 'custom'
readonly name: string
readonly options: IWidgetOptions<unknown>
// Dummy value to satisfy type requirements
/** Dummy value to satisfy type requirements. */
value: string
y: number = 0
/** Don't serialize the widget value. */
serialize: boolean = false
constructor(name: string, options: IWidgetOptions<unknown>) {
this.type = 'custom'