Skip to content

Commit

Permalink
fix(pattern export): fix bug with export pattern modal
Browse files Browse the repository at this point in the history
  • Loading branch information
philip-cline committed Dec 11, 2023
1 parent 69dba66 commit 504f41b
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 504f41b

Please sign in to comment.