Skip to content

Commit

Permalink
Fix custom column deletion
Browse files Browse the repository at this point in the history
API changed custom columns to an object, but they can (and should) be stringified for saving.
  • Loading branch information
mofojed committed Dec 7, 2021
1 parent fadd327 commit ccbafb1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/iris-grid/src/IrisGrid.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,10 @@ export class IrisGrid extends Component {
selectDistinctColumns,
} = this.state;

const { columns, customColumns: oldCustomColumns } = model;
const { columns } = model;
const oldCustomColumns = model.customColumns.map(
customColumn => `${customColumn}`
);

const removedColumnNames = IrisGridUtils.getRemovedCustomColumnNames(
oldCustomColumns,
Expand Down

0 comments on commit ccbafb1

Please sign in to comment.