Check for cell type in isSaveable
parent
b6ff76b6f2
commit
aaef38c9aa
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue