diff options
author | bobzel <zzzman@gmail.com> | 2025-01-08 12:17:49 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-01-08 12:17:49 -0500 |
commit | cb11630ed4fe7d588a5055357805fb1ac972fc75 (patch) | |
tree | aadbed3dd05fc9dfa32b09120b247ff61c0a1cdf /src/client/views/nodes/ImageBox.tsx | |
parent | 2f7d1f0073943e1eb9e0f34c4459bc0176377697 (diff) |
minor cleanup
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r-- | src/client/views/nodes/ImageBox.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/ImageBox.tsx b/src/client/views/nodes/ImageBox.tsx index e0ef8f423..778d52a8d 100644 --- a/src/client/views/nodes/ImageBox.tsx +++ b/src/client/views/nodes/ImageBox.tsx @@ -50,9 +50,9 @@ export class ImageEditorData { private static _instance: ImageEditorData; private static get imageData() { return (ImageEditorData._instance ?? new ImageEditorData()).imageData; } // prettier-ignore @observable imageData: { rootDoc: Doc | undefined; open: boolean; source: string; addDoc: Opt<(doc: Doc | Doc[], annotationKey?: string) => boolean> } = observable({ rootDoc: undefined, open: false, source: '', addDoc: undefined }); - @action private static set = (open: boolean, rootDoc: Doc | undefined, source: string, addDoc: Opt<(doc: Doc | Doc[], annotationKey?: string) => boolean>) => { + private static set = action((open: boolean, rootDoc: Doc | undefined, source: string, addDoc: Opt<(doc: Doc | Doc[], annotationKey?: string) => boolean>) => { this._instance.imageData = { open, rootDoc, source, addDoc }; - }; + }); constructor() { makeObservable(this); |