Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 18, 2023
1 parent 14a5e45 commit be3931f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions src/AutocompleteVirtualized.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ export default function AutocompleteVirtualized(props) {
result.text != null
? result.text
: result.id != null
? result.id
: result;
? result.id
: result;
textToOption.delete(text.toLowerCase());
});
tokens.forEach((token) => {
Expand Down
4 changes: 2 additions & 2 deletions src/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2425,8 +2425,8 @@ function getNewEmbeddingData(state, features) {
embedding.spatial != null
? embedding.spatial.type
: embedding.type
? embedding.type
: TRACE_TYPE_SCATTER;
? embedding.type
: TRACE_TYPE_SCATTER;
let coordinates =
traceType !== TRACE_TYPE_META_IMAGE ? cachedData[embeddingKey] : null;
if (coordinates == null && embedding.mode != null) {
Expand Down
24 changes: 12 additions & 12 deletions src/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -680,10 +680,10 @@ export function rankdata(values) {
return a.value < b.value
? -1
: a.value === b.value
? a.position < b.position
? -1
: 1
: 1;
? a.position < b.position
? -1
: 1
: 1;
});

// Walk the sorted array, filling output array using sorted positions,
Expand Down Expand Up @@ -722,20 +722,20 @@ function indexSortPairs(ranks, ascending) {
return a.value < b.value
? -1
: a.value === b.value
? a.position < b.position
? -1
: 1
: 1;
? a.position < b.position
? -1
: 1
: 1;
});
} else {
ranks.sort(function (a, b) {
return a.value < b.value
? 1
: a.value === b.value
? a.position < b.position
? 1
: -1
: -1;
? a.position < b.position
? 1
: -1
: -1;
});
}

Expand Down

0 comments on commit be3931f

Please sign in to comment.