Skip to content

Commit

Permalink
fix: check if both updateGroup and updateTime are falsey - fixes #202 (
Browse files Browse the repository at this point in the history
…#262)

Check if both editable options are true instead of one by one

Co-authored-by: Yotam Berkowitz <[email protected]>
  • Loading branch information
robinsonlam and yotamberk committed Jan 21, 2020
1 parent 6c510bb commit 2861085
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/timeline/component/ItemSet.js
Original file line number Diff line number Diff line change
Expand Up @@ -2292,9 +2292,7 @@ class ItemSet extends Component {
*/
_onUpdateItem(item) {
if (!this.options.selectable) return;
if (!this.options.editable.updateTime) return;
if (!this.options.editable.updateGroup) return;

if (!this.options.editable.updateTime && !this.options.editable.updateGroup) return;

const me = this;

Expand Down

0 comments on commit 2861085

Please sign in to comment.