Skip to content

Commit 95b02e7

Browse files
committed
refetch data on showAll columns
1 parent be940be commit 95b02e7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/components/ColumnsConfiguration/ColumnsConfiguration.react.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,14 @@ export default class ColumnsConfiguration extends React.Component {
4040
}
4141

4242
showAll() {
43-
this.props.handleColumnsOrder(this.props.order.map(order => ({ ...order, visible: true })));
43+
let shouldReload = false;
44+
let updatedOrder = this.props.order.map(field => {
45+
if (!shouldReload && !field.cached) {
46+
shouldReload = true;
47+
}
48+
return { ...field, visible: true }
49+
});
50+
this.props.handleColumnsOrder(updatedOrder, shouldReload);
4451
}
4552

4653
hideAll() {

0 commit comments

Comments
 (0)