diff options
| author | bobzel <zzzman@gmail.com> | 2021-10-16 01:58:15 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2021-10-16 01:58:15 -0400 |
| commit | bdf0befa2b5eff79c2729254c2d053afe18b1646 (patch) | |
| tree | 18978affe4b2209c51a9e14277bf2e4bffeb6e2c /src/client/views/linking | |
| parent | b08232def0a7533cc7dbc7db8d3153e72a3ff2d5 (diff) | |
fixed warnings/errors & redirection to /home
Diffstat (limited to 'src/client/views/linking')
| -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) { |
