Skip to content

Commit 504f41b

Browse files
committed
fix(pattern export): fix bug with export pattern modal
1 parent 69dba66 commit 504f41b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/editor/components/EditorFeedSourcePanel.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,9 @@ export default class EditorFeedSourcePanel extends Component<Props> {
8484
return (
8585
<SnapshotItem
8686
disabled={disabled}
87+
exportPatternsModal={this.refs.exportPatternsModal}
8788
key={s.id}
88-
modal={this.refs.exportPatternsModal}
89+
modal={this.refs.confirmModal}
8990
snapshot={s}
9091
{...this.props} />
9192
)
@@ -133,6 +134,7 @@ export type ItemProps = {
133134
deleteSnapshot: typeof snapshotActions.deleteSnapshot,
134135
disabled: boolean,
135136
downloadSnapshot: typeof snapshotActions.downloadSnapshot,
137+
exportPatternsModal: any,
136138
feedSource: Feed,
137139
modal: any,
138140
restoreSnapshot: typeof snapshotActions.restoreSnapshot,
@@ -148,7 +150,7 @@ class SnapshotItem extends Component<ItemProps> {
148150
}
149151

150152
_onClickExport = () => {
151-
this.props.modal.open({snapshot: this.props.snapshot})
153+
this.props.exportPatternsModal.open({snapshot: this.props.snapshot})
152154
}
153155

154156
_onDeleteSnapshot = () => {

0 commit comments

Comments
 (0)