Keep local source until save

pull/2077/head
Andrew Watkins 2017-10-04 15:02:03 -07:00
parent 9e1020dd11
commit 44e720eebf
1 changed files with 1 additions and 1 deletions

View File

@ -230,7 +230,7 @@ class CellEditorOverlay extends Component {
const {data} = await getQueryConfig(url, [{query: text, id}], templates)
const config = data.queries.find(q => q.id === id)
const nextQueries = this.state.queriesWorkingDraft.map(
q => (q.id === id ? config.queryConfig : q)
q => (q.id === id ? {...config.queryConfig, source: q.source} : q)
)
this.setState({queriesWorkingDraft: nextQueries})
} catch (error) {