Skip to content

Commit 83a5c0a

Browse files
Format frontend to pass lint checks
1 parent b7519a2 commit 83a5c0a

File tree

1 file changed

+14
-14
lines changed
  • contentcuration/contentcuration/frontend/channelEdit/components/Clipboard

1 file changed

+14
-14
lines changed

contentcuration/contentcuration/frontend/channelEdit/components/Clipboard/index.vue

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -251,20 +251,20 @@
251251
let resourceCount = 0;
252252
const contentNodesValues = Object.values(this.contentNodesMap);
253253
this.selectedNodeIds.forEach(id => {
254-
let node = this.clipboardNodesMap[id];
255-
let kind = node?.kind;
256-
// Check contentNodesMap for node kind if missing in clipboardNodesMap
257-
if (!kind && node?.source_node_id) {
258-
const contentNode = contentNodesValues.find(n => n.node_id === node.source_node_id);
259-
kind = contentNode?.kind;
260-
}
261-
262-
if (kind === 'topic') {
263-
topicCount++;
264-
} else {
265-
resourceCount++;
266-
}
267-
});
254+
const node = this.clipboardNodesMap[id];
255+
let kind = node?.kind;
256+
// Check contentNodesMap for node kind if missing in clipboardNodesMap
257+
if (!kind && node?.source_node_id) {
258+
const contentNode = contentNodesValues.find(n => n.node_id === node.source_node_id);
259+
kind = contentNode?.kind;
260+
}
261+
262+
if (kind === 'topic') {
263+
topicCount++;
264+
} else {
265+
resourceCount++;
266+
}
267+
});
268268
return { topicCount: topicCount, resourceCount: resourceCount };
269269
},
270270
},

0 commit comments

Comments
 (0)