Skip to content

Commit 4ce97aa

Browse files
minor fixes
1 parent aa215a0 commit 4ce97aa

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

src/containers/Storage/Storage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export const Storage = ({database, nodeId, groupId, pDiskId}: StorageProps) => {
122122
database,
123123
with: visibleEntities,
124124
node_id: nodeId,
125-
// node_id and group_id params doesn't work together
125+
// node_id and group_id params don't work together
126126
group_id: valueIsDefined(nodeId) ? undefined : groupId,
127127
},
128128
{

src/containers/Storage/StorageNodes/columns/hooks.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,14 @@ import {
1313
} from './constants';
1414
import type {GetStorageNodesColumnsParams} from './types';
1515

16-
export const useGetStorageNodesColumns = (params: GetStorageNodesColumnsParams) => {
17-
return React.useMemo(() => {
18-
return getPreparedStorageNodesColumns(params);
19-
}, [params]);
20-
};
21-
2216
export function useStorageNodesSelectedColumns({
2317
visibleEntities,
24-
...restParams
18+
database,
19+
additionalNodesProps,
2520
}: GetStorageNodesColumnsParams) {
26-
const columns = useGetStorageNodesColumns(restParams);
21+
const columns = React.useMemo(() => {
22+
return getPreparedStorageNodesColumns({database, additionalNodesProps});
23+
}, [database, additionalNodesProps]);
2724

2825
const requiredColumns = React.useMemo(() => {
2926
if (visibleEntities === VISIBLE_ENTITIES.missing) {

0 commit comments

Comments
 (0)