Replace loose equality (== null, != null) with strict equality

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 09:22:36 +08:00
parent 3eec131ae0
commit 64372c7043
8 changed files with 20 additions and 20 deletions

View File

@@ -141,7 +141,7 @@ export default {
if(newValue) this.createCy();
},
taskSeq: function(newValue){
if (newValue != null) this.createCy();
if (newValue !== null) this.createCy();
},
traceId: function(newValue) {
// 當 traceId 屬性變化時更新 showTraceId
@@ -199,7 +199,7 @@ export default {
// 避免每次渲染都重複累加
this.processMap.nodes = [];
// 將 api call 回來的資料帶進 node
if(this.taskSeq != null) {
if(this.taskSeq !== null) {
this.taskSeq.forEach((node, index) => {
this.processMap.nodes.push({
data: {
@@ -220,7 +220,7 @@ export default {
*/
setEdgesData(){
this.processMap.edges = [];
if(this.taskSeq != null) {
if(this.taskSeq !== null) {
this.taskSeq.forEach((edge, index) => {
this.processMap.edges.push({
data: {
@@ -244,7 +244,7 @@ export default {
this.setNodesData();
this.setEdgesData();
if(graphId != null) cytoscapeMapTrace(this.processMap.nodes, this.processMap.edges, graphId);
if(graphId !== null) cytoscapeMapTrace(this.processMap.nodes, this.processMap.edges, graphId);
});
},
/**