Skip to content

Commit 5ef9384

Browse files
committed
fix: columnSettings -> columnsSettings
1 parent 5348d73 commit 5ef9384

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

src/containers/Storage/StorageNodes/getNodes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,6 @@ export const getStorageNodes: FetchData<
6565
data: preparedResponse.nodes || [],
6666
found: preparedResponse.found || 0,
6767
total: preparedResponse.total || 0,
68-
columnSettings: preparedResponse.columnSettings,
68+
columnsSettings: preparedResponse.columnsSettings,
6969
};
7070
};

src/containers/Storage/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export type StorageViewContext = {
99
};
1010

1111
export type StorageNodesPaginatedTableData = PaginatedTableData<PreparedStorageNode> & {
12-
columnSettings?: {
12+
columnsSettings?: {
1313
maxSlotsPerDisk: number;
1414
maxDisksPerNode: number;
1515
};

src/containers/Storage/utils/useStorageColumnsSettings.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ export function useStorageColumnsSettings() {
1818

1919
const handleDataFetched = React.useCallback(
2020
(data: StorageNodesPaginatedTableData) => {
21-
if (data?.columnSettings && !pDiskWidth) {
22-
const {maxSlotsPerDisk, maxDisksPerNode} = data.columnSettings;
21+
if (data?.columnsSettings && !pDiskWidth) {
22+
const {maxSlotsPerDisk, maxDisksPerNode} = data.columnsSettings;
2323
const maxSlots = maxSlotsPerDisk || MAX_SLOTS_DEFAULT;
2424
const maxDisks = maxDisksPerNode || MAX_SLOTS_DEFAULT;
2525

src/store/reducers/storage/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export interface PreparedStorageResponse {
107107
found: number | undefined;
108108
total: number | undefined;
109109
tableGroups?: TableGroup[];
110-
columnSettings?: {
110+
columnsSettings?: {
111111
maxSlotsPerDisk: number;
112112
maxDisksPerNode: number;
113113
};

src/store/reducers/storage/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,7 @@ export const prepareStorageNodesResponse = (data: TNodesInfo): PreparedStorageRe
298298
total: Number(TotalNodes) || preparedNodes?.length,
299299
found: Number(FoundNodes),
300300
tableGroups,
301-
columnSettings: {maxSlotsPerDisk, maxDisksPerNode},
301+
columnsSettings: {maxSlotsPerDisk, maxDisksPerNode},
302302
};
303303
};
304304

0 commit comments

Comments
 (0)