summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2021-04-01 18:36:01 +0200
committerJules Laplace <julescarbon@gmail.com>2021-04-01 18:36:01 +0200
commit7524d3c92e8b525ec9084883eaec3b8caa043f54 (patch)
tree15b18415538ec4f8a1d3f1425778b1c0a7d0d2ce
parent7e344419330855dbbf10896c39e91b4e6861dd57 (diff)
fix picking cursor
-rw-r--r--frontend/app/views/tile/components/tile.form.js4
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)
}
}