From cb650cc928c52007e2835303a08962c47621a22d Mon Sep 17 00:00:00 2001 From: Stewart Allen Date: Wed, 16 Dec 2020 21:59:56 -0500 Subject: [PATCH] better fix for cam/ops handling in other modes --- src/mode/cam/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mode/cam/client.js b/src/mode/cam/client.js index 3f3ac87e..ee00e53f 100644 --- a/src/mode/cam/client.js +++ b/src/mode/cam/client.js @@ -96,7 +96,7 @@ let hasTabs = false; let hasTraces = false; // ensure trace op is a singleton for now - if (proc.ops) + if (isCamMode && proc.ops) for (let i=0; i { + if (!isCamMode) return; let oplist = current.process.ops; - if (!oplist) return; if (oplist.indexOf(rec) < 0) { oplist.push(rec); API.conf.save(); @@ -283,8 +283,8 @@ }); api.event.on("cam.op.del", func.opDel = (rec) => { + if (!isCamMode) return; let oplist = current.process.ops; - if (!oplist) return; let pos = oplist.indexOf(rec); if (pos >= 0) { oplist.splice(pos,1);