From 52a3ffb55fc9f3baac0892405c6314b2041256c3 Mon Sep 17 00:00:00 2001 From: "Adnan M.Sagar, PhD" Date: Mon, 4 Jan 2021 17:22:25 +0200 Subject: [PATCH] Update Editor.jsx Small fix to add created or modified to the body correctly. Below was my original fix but didn't want to change file flow ```js meta[body.created ? 'modified' : 'created'] = props.env.getCurrentTimeAdjusted() ``` Great job with the all the Annotation packages, thank you. --- src/editor/Editor.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor/Editor.jsx b/src/editor/Editor.jsx index 9c76111..799369f 100644 --- a/src/editor/Editor.jsx +++ b/src/editor/Editor.jsx @@ -65,9 +65,9 @@ const Editor = props => { if (user.displayName) meta.creator.name = user.displayName; if (body.created) - body.modified = props.env.getCurrentTimeAdjusted(); + meta.modified = props.env.getCurrentTimeAdjusted(); else - body.created = props.env.getCurrentTimeAdjusted(); + meta.created = props.env.getCurrentTimeAdjusted(); } return meta; @@ -160,4 +160,4 @@ const Editor = props => { } -export default Editor; \ No newline at end of file +export default Editor;