Remove filter of atom selection if the addToSocketType is having a capacity of 1
@@ -94,6 +94,7 @@ export default function WonSocketAddAtom({
(ucIdentifier === "*" ||
atomUtils.getMatchedUseCaseIdentifier(atom) ===
ucIdentifier) &&
+ (vocab.socketCapacity[addToSocketType] === 1 ||
(isAddToAtomOwned
? !atomUtils.getConnectionBySocketUris(
addToAtom,
@@ -104,7 +105,7 @@ export default function WonSocketAddAtom({
atom,
atomUtils.getSocketUri(atom, socketType),
addToAtomSocketUri
- ))
+ )))
)
);
})
@@ -162,6 +163,7 @@ export default function WonSocketAddAtom({
(ucIdentifier === "*" ||
atomUtils.getMatchedUseCaseIdentifier(selectedAtom) ===
ucIdentifier) &&
+ (vocab.socketCapacity[addToSocketType] === 1 ||
(isAddToAtomOwned
? !atomUtils.getConnectionBySocketUris(
addToAtom,
@@ -172,7 +174,7 @@ export default function WonSocketAddAtom({
selectedAtom,
atomUtils.getSocketUri(selectedAtom, socketType),
addToAtomSocketUri
- ))
+ )))
);
const selectedAtomSocketUri = atomUtils.getSocketUri(
selectedAtom,
