Skip to content

Commit

Permalink
fix e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
matborowczyk committed Oct 28, 2024
1 parent 53d7bd1 commit f87aab7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/UI/Components/Diagram/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,6 @@ export const checkIfConnectionIsAllowed = (

const elementsCanBeConnected =
sourceRule !== undefined || targetRule !== undefined;

//the info about the connection between elements can be one directional
const connectionIsInterServiceRelation =
(sourceRule && sourceRule.kind === TypeEnum.INTERSERVICE) ||
Expand Down Expand Up @@ -241,9 +240,8 @@ export const checkWhetherConnectionRulesAreExhausted = (
rule: EmbeddedRule | InterServiceRule | undefined,
editMode: boolean,
): boolean => {
//if there is no rule then there shouldn't be possibility to connect them
if (!rule) {
return true;
return false;
}

const targetConnectionsForGivenRule = connectedElements.filter(
Expand Down

0 comments on commit f87aab7

Please sign in to comment.