aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-08-27 19:59:14 -0400
committerbobzel <zzzman@gmail.com>2020-08-27 19:59:14 -0400
commit2e0e34df0db385acfcd4079fae6e01fd4a2234fa (patch)
tree3cf83489ce62b374538f88e243e269d9ae33a997 /src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
parentf738601ac9b497334e17835535f7572c961ee373 (diff)
added undo for deleting presentation view items. fixed scroll height of mainView sidebar.
Diffstat (limited to 'src/client/views/collections/collectionFreeForm/FormatShapePane.tsx')
-rw-r--r--src/client/views/collections/collectionFreeForm/FormatShapePane.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx b/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
index 91efe139e..e6ec274f0 100644
--- a/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
+++ b/src/client/views/collections/collectionFreeForm/FormatShapePane.tsx
@@ -1,7 +1,7 @@
import React = require("react");
import { IconProp } from '@fortawesome/fontawesome-svg-core';
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { action, computed, observable } from "mobx";
+import { action, computed, observable, runInAction } from "mobx";
import { observer } from "mobx-react";
import { Doc, Field, Opt } from "../../../../fields/Doc";
import { Document } from "../../../../fields/documentSchemas";
@@ -91,7 +91,7 @@ export class FormatShapePane extends AntimodeMenu<AntimodeMenuProps> {
super(props);
FormatShapePane.Instance = this;
this._canFade = false;
- this.Pinned = BoolCast(Doc.UserDoc()["menuFormatShape-pinned"]);
+ runInAction(() => this.Pinned = BoolCast(Doc.UserDoc()["menuFormatShape-pinned"]));
}
@action