Skip to content

Commit

Permalink
bug(inventory groups): fixing columns order in modal (#1829)
Browse files Browse the repository at this point in the history
* feat(inventory groups): fixed edge case with create group

* fix(inventory groups): fixed edge case with cross button

* bug(inventory groups): fixed order of columns in add system modal
  • Loading branch information
Fewwy authored and adonispuente committed Apr 14, 2023
1 parent d882a87 commit 3befc1e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/GroupSystems/GroupSystems.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ export const prepareColumns = (initialColumns, hideGroupColumn) => {
// map columns to the speicifc order
return [
'display_name',
'groups',
'tags',
'system_profile',
'update_method',
'groups',
'updated'
].map((colKey) => columns.find(({ key }) => key === colKey))
.filter(Boolean); // eliminate possible undefined's
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ import AddSystemsToGroupModal from './AddSystemsToGroupModal';

const TABLE_HEADERS = [
'Name',
'Group',
'Tags',
'OS',
'Update method',
'Group',
'Last seen'
];

Expand Down

0 comments on commit 3befc1e

Please sign in to comment.