Skip to content

Commit 95f298f

Browse files
committed
prevent request for always cached fields
1 parent e03e75b commit 95f298f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/components/ColumnsConfiguration/ColumnsConfiguration.react.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,13 @@ export default class ColumnsConfiguration extends React.Component {
8484
name,
8585
visible
8686
};
87-
handleColumnsOrder(updatedOrder, visible);
87+
let shouldReload = visible;
88+
// these fields are always cached as they are never excluded from server
89+
// therefore no need to make another request.
90+
if (name === 'objectId' || name === 'createdAt' || name === 'updatedAt' || name === 'ACL') {
91+
shouldReload = false;
92+
}
93+
handleColumnsOrder(updatedOrder, shouldReload);
8894
}}
8995
handleColumnDragDrop={handleColumnDragDrop} />
9096
})}

0 commit comments

Comments
 (0)