diff --git a/packages/amis/src/renderers/Table/ColumnToggler.tsx b/packages/amis/src/renderers/Table/ColumnToggler.tsx index 16a7a8cd5..4ced02e6b 100644 --- a/packages/amis/src/renderers/Table/ColumnToggler.tsx +++ b/packages/amis/src/renderers/Table/ColumnToggler.tsx @@ -176,7 +176,7 @@ export default class ColumnToggler extends React.Component< componentDidUpdate(prevProps: ColumnTogglerProps) { if (anyChanged('activeToggaleColumns', prevProps, this.props)) { - this.setState({tempColumns: this.props.columns}); + this.setState({tempColumns: cloneDeep(this.props.columns)}); } }