From 26ee0d78681eaf09b364535f2946b849cbab1a76 Mon Sep 17 00:00:00 2001 From: Rainer Simon Date: Fri, 11 Sep 2020 11:18:59 +0200 Subject: [PATCH] Cleanup --- src/editor/DOMWidget.jsx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/editor/DOMWidget.jsx b/src/editor/DOMWidget.jsx index bd17314..ddd2459 100644 --- a/src/editor/DOMWidget.jsx +++ b/src/editor/DOMWidget.jsx @@ -11,12 +11,12 @@ export default class DOMWidget extends Component { if (this.element.current) { if (this.props.annotation !== next.annotation) { const widgetEl = this.props.widget({ - annotation: this.props.annotation, - readOnly: this.props.readOnly, - onAppendBody: body => this.props.onAppendBody(body), - onUpdateBody: (previous, updated) => this.props.onUpdateBody(previous, updated), - onRemoveBody: body => this.props.onRemoveBody(body), - onSaveAndClose: () => this.props.onSaveAndClose() + annotation: next.annotation, + readOnly: next.readOnly, + onAppendBody: body => next.onAppendBody(body), + onUpdateBody: (previous, updated) => next.onUpdateBody(previous, updated), + onRemoveBody: body => next.onRemoveBody(body), + onSaveAndClose: () => next.onSaveAndClose() }); // Delete previous rendered state