diff options
author | mehekj <mehek.jethani@gmail.com> | 2021-10-21 16:46:49 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2021-10-21 16:46:49 -0400 |
commit | 353e72feb29d3549dcf7ec7875241ddb7a9a99d9 (patch) | |
tree | 743d8afe0700bff47c7ef5e141a606cbaba8c0e6 /src/client/views/linking/LinkEditor.tsx | |
parent | 6cec290f98103827727905874c5a9c5ced0bcca8 (diff) | |
parent | bdf0befa2b5eff79c2729254c2d053afe18b1646 (diff) |
Merge branch 'master' into temporalmedia-mehek
Diffstat (limited to 'src/client/views/linking/LinkEditor.tsx')
-rw-r--r-- | src/client/views/linking/LinkEditor.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/linking/LinkEditor.tsx b/src/client/views/linking/LinkEditor.tsx index 5b5c3cd01..db331bb75 100644 --- a/src/client/views/linking/LinkEditor.tsx +++ b/src/client/views/linking/LinkEditor.tsx @@ -54,9 +54,9 @@ export class LinkEditor extends React.Component<LinkEditorProps> { linkRelationshipList.push(value); linkRelationshipSizes.push(1); const randColor = "rgb(" + Math.floor(Math.random() * 255) + "," + Math.floor(Math.random() * 255) + "," + Math.floor(Math.random() * 255) + ")"; - linkColorList.push(randColor) + linkColorList.push(randColor); // if the relationship is already in the list AND the new rel is different from the prev rel, update the rel sizes - } else if (linkRelationshipList && value != prevRelationship) { + } else if (linkRelationshipList && value !== prevRelationship) { const index = linkRelationshipList.indexOf(value); //increment size of new relationship size if (index !== -1 && index < linkRelationshipSizes.length) { |