Skip to content

Commit

Permalink
fix(ui): fix crash in time machine when opening vis settings
Browse files Browse the repository at this point in the history
Closes #13813
  • Loading branch information
chnn committed May 17, 2019
1 parent f75d985 commit 905fe48
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

### Features

1. [13850](https://github.com/influxdata/influxdb/pull/13850): Add description field to Tasks.
1. [13924](https://github.com/influxdata/influxdb/pull/13924): Add CLI arguments for configuring session length and renewal.
1. [13945](https://github.com/influxdata/influxdb/pull/13945): Add heatmap visualization type
1. [13850](https://github.com/influxdata/influxdb/pull/13850): Add description field to Tasks
1. [13924](https://github.com/influxdata/influxdb/pull/13924): Add CLI arguments for configuring session length and renewal

### Bug Fixes

Expand All @@ -13,6 +14,7 @@
1. [13797](https://github.com/influxdata/influxdb/pull/13797): Expand tab key presses to 2 spaces in the Flux editor
1. [13823](https://github.com/influxdata/influxdb/pull/13823): Prevent dragging of Variable Dropdowns when dragging a scrollbar inside the dropdown
1. [13853](https://github.com/influxdata/influxdb/pull/13853): Improve single stat computation
1. [13945](https://github.com/influxdata/influxdb/pull/13945): Fix crash when opening histogram settings with no data

### UI Improvements
1. [#13835](https://github.com/influxdata/influxdb/pull/13835): Render checkboxes in query builder tag selection lists
Expand Down
2 changes: 1 addition & 1 deletion ui/src/timeMachine/selectors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const getTables = (state: AppState): FluxTable[] =>
const getVisTableMemoized = memoizeOne(fluxToTable)

export const getVisTable = (state: AppState): Table => {
const files = getActiveTimeMachine(state).queryResults.files
const files = getActiveTimeMachine(state).queryResults.files || []
const {table} = getVisTableMemoized(files.join('\n\n'))

return table
Expand Down

0 comments on commit 905fe48

Please sign in to comment.