Skip to content

Commit

Permalink
Merge pull request #1005 from ibi-group/fix-pattern-exporting
Browse files Browse the repository at this point in the history
Fix bug with export pattern modal
  • Loading branch information
philip-cline committed Dec 11, 2023
2 parents 69dba66 + 504f41b commit 1010325
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/editor/components/EditorFeedSourcePanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,9 @@ export default class EditorFeedSourcePanel extends Component<Props> {
return (
<SnapshotItem
disabled={disabled}
exportPatternsModal={this.refs.exportPatternsModal}
key={s.id}
modal={this.refs.exportPatternsModal}
modal={this.refs.confirmModal}
snapshot={s}
{...this.props} />
)
Expand Down Expand Up @@ -133,6 +134,7 @@ export type ItemProps = {
deleteSnapshot: typeof snapshotActions.deleteSnapshot,
disabled: boolean,
downloadSnapshot: typeof snapshotActions.downloadSnapshot,
exportPatternsModal: any,
feedSource: Feed,
modal: any,
restoreSnapshot: typeof snapshotActions.restoreSnapshot,
Expand All @@ -148,7 +150,7 @@ class SnapshotItem extends Component<ItemProps> {
}

_onClickExport = () => {
this.props.modal.open({snapshot: this.props.snapshot})
this.props.exportPatternsModal.open({snapshot: this.props.snapshot})
}

_onDeleteSnapshot = () => {
Expand Down

0 comments on commit 1010325

Please sign in to comment.