aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/ImageBox.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-01-08 12:17:49 -0500
committerbobzel <zzzman@gmail.com>2025-01-08 12:17:49 -0500
commitcb11630ed4fe7d588a5055357805fb1ac972fc75 (patch)
treeaadbed3dd05fc9dfa32b09120b247ff61c0a1cdf /src/client/views/nodes/ImageBox.tsx
parent2f7d1f0073943e1eb9e0f34c4459bc0176377697 (diff)
minor cleanup
Diffstat (limited to 'src/client/views/nodes/ImageBox.tsx')
-rw-r--r--src/client/views/nodes/ImageBox.tsx4
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);