diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-04-01 18:36:01 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-04-01 18:36:01 +0200 |
| commit | 7524d3c92e8b525ec9084883eaec3b8caa043f54 (patch) | |
| tree | 15b18415538ec4f8a1d3f1425778b1c0a7d0d2ce | |
| parent | 7e344419330855dbbf10896c39e91b4e6861dd57 (diff) | |
fix picking cursor
| -rw-r--r-- | frontend/app/views/tile/components/tile.form.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/frontend/app/views/tile/components/tile.form.js b/frontend/app/views/tile/components/tile.form.js index b50af2f..c258c5e 100644 --- a/frontend/app/views/tile/components/tile.form.js +++ b/frontend/app/views/tile/components/tile.form.js @@ -117,9 +117,9 @@ class TileForm extends Component { errorFields: new Set([]), }) } - if (this.props.page.editor.pickedCursor !== prevProps.page.editor.pickedCursor) { - console.log("cursor >>", this.props.page.editor.pickedCursor.id) + if (this.props.page.editor.pickedCursor !== prevProps.page.editor.pickedCursor && this.props.page.editor.pickedCursor) { this.handleSettingsSelect('custom_cursor_id', this.props.page.editor.pickedCursor.id) + this.props.pageActions.pickCursor(null) } } |
