File tree Expand file tree Collapse file tree 1 file changed +14
-14
lines changed
contentcuration/contentcuration/frontend/channelEdit/components/Clipboard Expand file tree Collapse file tree 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change 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 },
You can’t perform that action at this time.
0 commit comments