From 66c528c420de6e623130a5d9c97f9ccc3bb5a4ab Mon Sep 17 00:00:00 2001 From: Ruben Thoms Date: Wed, 25 Oct 2023 16:23:01 +0200 Subject: [PATCH] Fixed bug in SNS --- .../lib/components/SmartNodeSelector/private-components/tag.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx b/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx index 904aacfc5..9fe0194f7 100644 --- a/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx +++ b/frontend/src/lib/components/SmartNodeSelector/private-components/tag.tsx @@ -255,7 +255,7 @@ export class Tag extends React.Component { return "Incomplete"; } else { const exactlyMatchedNodePaths = nodeSelection.exactlyMatchedNodePaths(); - if (exactlyMatchedNodePaths.length === -1 || exactlyMatchedNodePaths.length <= maxNumSelectedNodes) { + if (maxNumSelectedNodes === -1 || exactlyMatchedNodePaths.length <= maxNumSelectedNodes) { return exactlyMatchedNodePaths.join("\n"); } return `Matched ${exactlyMatchedNodePaths.length} node${