Skip to content

Commit

Permalink
update timelineIsLast attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
mxkae committed Aug 14, 2024
1 parent e41f751 commit cdd8a25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/block/timeline/edit.js
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ const Edit = props => {
dispatch( 'core/block-editor' ).__unstableMarkNextChangeAsNotPersistent()
setAttributes( { timelineIsLast: false } )
isUpdating = true
} else if ( ( ! nextBlock || nextBlock.name !== 'stackable/timeline' ) && props.attributes.timelineIsLast ) {
} else if ( ( ! nextBlock || nextBlock.name !== 'stackable/timeline' ) && ! props.attributes.timelineIsLast ) {
dispatch( 'core/block-editor' ).__unstableMarkNextChangeAsNotPersistent()
setAttributes( { timelineIsLast: true } )
isUpdating = true
Expand Down

0 comments on commit cdd8a25

Please sign in to comment.