Skip to content

Commit ada29cd

Browse files
committed
chore: use mocks
1 parent 38969b6 commit ada29cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/containers/Storage/StorageNodes/getNodes.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ export const getStorageNodes: FetchData<
4646
const dataFieldsRequired = getRequiredDataFields(columnsIds, NODES_COLUMNS_TO_DATA_FIELDS);
4747

4848
let response;
49-
if (process.env.NODE_ENV === 'development') {
49+
const urlParams = new URLSearchParams(window.location.search);
50+
if (urlParams.get('mocks')) {
5051
// Get mock configuration from URL parameters or use defaults
51-
const urlParams = new URLSearchParams(window.location.search);
5252
const pdisks = parseInt(urlParams.get('pdisks') || '10', 10);
5353
const vdisksPerPDisk = parseInt(urlParams.get('vdisksPerPDisk') || '2', 10);
5454
response = generateNodes(5, {vdisksCount: pdisks * vdisksPerPDisk, pdisksCount: pdisks});

0 commit comments

Comments
 (0)