File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/containers/Storage/StorageNodes Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 } ) ;
You can’t perform that action at this time.
0 commit comments