Skip to content
Snippets Groups Projects
Unverified Commit 7f7299d1 authored by Paul Rosenzweig's avatar Paul Rosenzweig Committed by GitHub
Browse files

save immediately when moving a question (#10832)

parent 8cf7dd2c
No related branches found
No related tags found
No related merge requests found
......@@ -136,7 +136,11 @@ export default class QueryModals extends React.Component {
initialCollectionId={question.collectionId()}
onClose={onCloseModal}
onMove={collection => {
question.setCollectionId(collection && collection.id).update();
const card = question
.setCollectionId(collection && collection.id)
.card();
this.props.onSave(card);
onCloseModal();
}}
/>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment