Skip to content

Commit

Permalink
Fix #443 for cases where first node has x dist of 0 (#444)
Browse files Browse the repository at this point in the history
* Fix #443 for cases where first node has x dist of 0

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
theosanderson and pre-commit-ci[bot] authored Oct 28, 2022
1 parent dceb179 commit c33144c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion taxonium_data_handling/importing.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ export const generateConfig = (config, processedUploadedData) => {
];

const firstNode = processedUploadedData.nodes[0];

config.x_accessors =
firstNode.x_dist && firstNode.x_time
firstNode.x_dist !== undefined && firstNode.x_time !== undefined
? ["x_dist", "x_time"]
: firstNode.x_dist
? ["x_dist"]
Expand Down
4 changes: 2 additions & 2 deletions taxonium_web_client/src/components/SearchItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ const SearchItem = ({ singleSearchSpec, setThisSearchSpec, config }) => {
>
<input
type="checkbox"
title="Exact match"
title="Exact match"
checked={
singleSearchSpec.method === "text_exact" || is_multi_text
}
Expand All @@ -181,7 +181,7 @@ const SearchItem = ({ singleSearchSpec, setThisSearchSpec, config }) => {
>
<input
type="checkbox"
title="Multi-line"
title="Multi-line"
checked={is_multi_text}
onChange={(e) => {
if (e.target.checked) {
Expand Down

1 comment on commit c33144c

@vercel
Copy link

@vercel vercel bot commented on c33144c Oct 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.