Skip to content

Commit

Permalink
Merge pull request #516 from devinit/hotfix/dataset-error
Browse files Browse the repository at this point in the history
Fix | Dataset Error
  • Loading branch information
edwinmp committed May 10, 2021
2 parents 02d93e7 + 2aa4dde commit 64c37fb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ export const OperationDataTableContainer: FunctionComponent<OperationDataTableCo
// make sure that the columns are in required order ... no using immutable as it messes up the order
const _aliases = aliases.toJS() as OperationColumn[];
columns = Object.keys(list[0])
.map<OperationColumn>(
(column) => _aliases.find((alias) => alias.column_name === column) as OperationColumn,
.map<OperationColumn>((column) =>
column === 'error'
? { id: 0, column_name: 'error', column_alias: 'Error' }
: (_aliases.find((alias) => alias.column_name === column) as OperationColumn),
)
.filter((column) => !!column); // remove undefined
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ddw-analyst-ui",
"version": "2.9.3",
"version": "2.9.4",
"description": "The new and improved DDW Analyst UI interface",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 64c37fb

Please sign in to comment.