Skip to content

Commit cfef65b

Browse files
committed
fix: rm unused
1 parent e4debc2 commit cfef65b

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

src/containers/AppWithClusters/useClusterData.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,11 @@ export function useClusterData() {
2828
};
2929
}
3030

31-
export function useAdditionalNodeProps({balancer, groupId}: {balancer?: string; groupId?: string}) {
31+
export function useAdditionalNodeProps({balancer}: {balancer?: string}) {
3232
const [useClusterBalancerAsBackend] = useSetting<boolean>(USE_CLUSTER_BALANCER_AS_BACKEND_KEY);
3333

3434
const additionalNodesProps = getAdditionalNodesProps({
3535
balancer,
36-
groupId,
3736
useClusterBalancerAsBackend,
3837
});
3938

src/containers/Storage/Storage.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,7 @@ interface StorageProps {
6767

6868
export const Storage = ({database, nodeId, groupId, pDiskId}: StorageProps) => {
6969
const {balancer} = useClusterBaseInfo();
70-
const additionalNodesProps = useAdditionalNodeProps({
71-
balancer,
72-
groupId: valueIsDefined(groupId) ? groupId.toString() : undefined,
73-
});
70+
const additionalNodesProps = useAdditionalNodeProps({balancer});
7471

7572
const capabilitiesLoaded = useCapabilitiesLoaded();
7673
const groupsHandlerAvailable = useStorageGroupsHandlerAvailable();

src/utils/additionalProps.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,11 @@ import {getBackendFromRawNodeData} from './prepareBackend';
66
export const getAdditionalNodesProps = ({
77
balancer = backend,
88
useClusterBalancerAsBackend,
9-
groupId,
109
}: {
1110
balancer?: string;
1211
useClusterBalancerAsBackend?: boolean;
13-
groupId?: string;
1412
}): AdditionalNodesProps => {
1513
return {
16-
groupId,
1714
getNodeRef: (node: NodeAddress = {}) =>
1815
getBackendFromRawNodeData(node, balancer ?? '', useClusterBalancerAsBackend),
1916
};

0 commit comments

Comments
 (0)