diff --git a/Src/WitsmlExplorer.Frontend/components/ContextMenus/LogCurveInfoContextMenu.tsx b/Src/WitsmlExplorer.Frontend/components/ContextMenus/LogCurveInfoContextMenu.tsx index 8072001fa..55c088e75 100644 --- a/Src/WitsmlExplorer.Frontend/components/ContextMenus/LogCurveInfoContextMenu.tsx +++ b/Src/WitsmlExplorer.Frontend/components/ContextMenus/LogCurveInfoContextMenu.tsx @@ -57,6 +57,10 @@ const LogCurveInfoContextMenu = ( selectedServer, servers } = props; + const checkedLogCurveInfoRowsWithoutIndexCurve = + checkedLogCurveInfoRows.filter( + (lc) => lc.mnemonic !== selectedLog.indexCurve + ); const onClickOpen = () => { dispatchOperation({ type: OperationType.HideContextMenu }); @@ -111,10 +115,11 @@ const LogCurveInfoContextMenu = ( }; const toDelete = createComponentReferences( - checkedLogCurveInfoRows.map((lc) => lc.mnemonic), + checkedLogCurveInfoRowsWithoutIndexCurve.map((lc) => lc.mnemonic), selectedLog, ComponentType.Mnemonic ); + return ( , @@ -210,9 +215,8 @@ const LogCurveInfoContextMenu = ( , Analyze gaps