Check for cell type in isSaveable

pull/4536/head
Alirie Gray 2018-10-02 16:22:02 -07:00
parent b6ff76b6f2
commit aaef38c9aa
1 changed files with 5 additions and 1 deletions

View File

@ -137,9 +137,13 @@ class CellEditorOverlay extends Component<Props, State> {
}
private get isSaveable(): boolean {
const {queryDrafts} = this.timeMachineContainer.state
const {queryDrafts, type} = this.timeMachineContainer.state
const {status} = this.state
if (type === 'note') {
return true
}
if (this.isFluxSource) {
return _.get(status, 'type', '') === 'success'
}