Skip to content

Commit 6aba5cc

Browse files
Fix security eui memory table warnings (#6707)
Changes types of some strings Co-authored-by: Federico Rodriguez <federico.rodriguez@wazuh.com>
1 parent 5ddde24 commit 6aba5cc

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

plugins/main/public/components/security/policies/policies-table.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ export const PoliciesTable = ({
7272
{
7373
field: 'id',
7474
name: 'ID',
75-
width: 75,
75+
width: '75',
7676
sortable: true,
7777
truncateText: true,
7878
},
@@ -113,7 +113,7 @@ export const PoliciesTable = ({
113113
)
114114
);
115115
},
116-
width: 150,
116+
width: '150',
117117
sortable: false,
118118
},
119119
{

plugins/main/public/components/security/policies/policies.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { closeFlyout } from '../../common/flyouts/close-flyout-security';
1818
export const Policies = withUserAuthorizationPrompt([
1919
{ action: 'security:read', resource: 'policy:id:*' },
2020
])(() => {
21-
const [policies, setPolicies] = useState('');
21+
const [policies, setPolicies] = useState([]);
2222
const [loading, setLoading] = useState(false);
2323
const [isCreatingPolicy, setIsCreatingPolicy] = useState(false);
2424
const [isEditingPolicy, setIsEditingPolicy] = useState(false);

plugins/main/public/components/security/roles/roles-table.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ export const RolesTable = ({
7575
{
7676
field: 'id',
7777
name: 'ID',
78-
width: 75,
78+
width: '75',
7979
sortable: true,
8080
truncateText: true,
8181
},
8282
{
8383
field: 'name',
8484
name: 'Name',
85-
width: 200,
85+
width: '200',
8686
sortable: true,
8787
truncateText: true,
8888
},
@@ -147,7 +147,7 @@ export const RolesTable = ({
147147
)
148148
);
149149
},
150-
width: 150,
150+
width: '150',
151151
sortable: false,
152152
},
153153
{

0 commit comments

Comments
 (0)