Skip to content

Conversation

@dmt0
Copy link
Contributor

@dmt0 dmt0 commented Jul 18, 2018

closes #490

@dmt0 dmt0 self-assigned this Jul 18, 2018
@dmt0 dmt0 requested review from VeraZab and nicolaskruchten July 18, 2018 21:38
@dmt0 dmt0 force-pushed the dataselector-2d-fix branch from 3312e6b to 4c001c5 Compare July 18, 2018 21:46
@nicolaskruchten
Copy link
Contributor

I'll let @VeraZab review this guy

].includes(props.container.type)) ||
(props.container.type === 'table' && props.attr !== 'columnorder');
(props.container.type === 'table' && props.attr !== 'columnorder') ||
Array.isArray(this.fullValue);
Copy link
Contributor

Choose a reason for hiding this comment

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

well, I don't think all this.fullValues that are arrays are 2d..
2d means an array of arrays,
so, I would check that if fullValue is an array, that all the elements in it are arrays too..

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, this.fullValue is made of datasources, not data.
So for tables, contour Z, etc. it looks like ['ints', 'big ints'...]
Would it be different in cloud?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh ok, so you're saying that when only one column can be selected, this.fullValue will not be an array? it will just be a string?

if that's the case, then ok, yes, I approuve of this logic change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yep, it's a string like "ints"

Copy link
Contributor

Choose a reason for hiding this comment

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

ok 💃 thanks!

@dmt0 dmt0 merged commit 8ec3b50 into master Jul 19, 2018
@dmt0 dmt0 deleted the dataselector-2d-fix branch July 19, 2018 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Switching between trace types when data sources are selected produces errors

4 participants