diff --git a/src/container/actions.ts b/src/container/actions.ts index abb496d0..f77e3601 100644 --- a/src/container/actions.ts +++ b/src/container/actions.ts @@ -180,7 +180,7 @@ export const onNodeMouseLeave: IStateCallback = ({ nodeId }) } export const onDeleteKey: IStateCallback = ({ config }: IConfig) => (chart: IChart) => { - if (config.readonly) { + if (config && config.readonly) { return chart } if (chart.selected.type === 'node' && chart.selected.id) {