diff options
author | bobzel <zzzman@gmail.com> | 2021-09-26 03:18:41 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-09-26 03:18:41 -0400 |
commit | 85f5f3824b8e815350f1f83c81a53cafd8a26b9e (patch) | |
tree | a7e7e3f05d4bd4134ee4da56bad039d57c58a717 /src | |
parent | a793b7e981e46b7c98bee6cce3faaf3a5b05f6ae (diff) |
fixed bug with SetInPlace for fields starting with "_"
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/collections/CollectionStackedTimeline.tsx | 1 | ||||
-rw-r--r-- | src/fields/Doc.ts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/client/views/collections/CollectionStackedTimeline.tsx b/src/client/views/collections/CollectionStackedTimeline.tsx index e1e2990a0..16401bf01 100644 --- a/src/client/views/collections/CollectionStackedTimeline.tsx +++ b/src/client/views/collections/CollectionStackedTimeline.tsx @@ -760,6 +760,7 @@ class StackedTimelineAnchor extends React.Component<StackedTimelineAnchorProps> e, (e) => { if (!undo) undo = UndoManager.StartBatch("drag anchor"); + this.props.setTime(newTime(e)); return changeAnchor(anchor, left, newTime(e)); }, (e) => { diff --git a/src/fields/Doc.ts b/src/fields/Doc.ts index d8690831f..61ad76412 100644 --- a/src/fields/Doc.ts +++ b/src/fields/Doc.ts @@ -345,6 +345,7 @@ export namespace Doc { return GetT(doc, "system", "boolean", true); } export async function SetInPlace(doc: Doc, key: string, value: Field | undefined, defaultProto: boolean) { + if (key.startsWith("_")) key = key.substring(1); const hasProto = doc.proto instanceof Doc; const onDeleg = Object.getOwnPropertyNames(doc).indexOf(key) !== -1; const onProto = hasProto && Object.getOwnPropertyNames(doc.proto).indexOf(key) !== -1; |