File tree 17 files changed +18
-21
lines changed
Frontend/src/renderer/components
orders-component/order-detail-component
confirm-order-component/choose-transport-component
supervisor/requests-component
17 files changed +18
-21
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export default function AdminItems() {
183
183
await getAllProducts ( filters ) ;
184
184
} ;
185
185
186
- const placeholderRowCount = 30 ;
186
+ const placeholderRowCount = 5 ;
187
187
188
188
const placeholderData = Array . from (
189
189
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ export default function AdminOrders() {
155
155
const debouncedSearch = debounce ( async ( filters ) => {
156
156
await getAllOrders ( filters ) ;
157
157
} , 1000 ) ;
158
- const placeholderRowCount = 30 ;
158
+ const placeholderRowCount = 5 ;
159
159
160
160
const placeholderData = Array . from (
161
161
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ export default function AdminTransport() {
148
148
setIsEditTransportVisible ( false ) ;
149
149
} ;
150
150
151
- const placeholderRowCount = 30 ;
151
+ const placeholderRowCount = 5 ;
152
152
153
153
const placeholderData = Array . from (
154
154
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export default function AdminUsers() {
183
183
setIsEditUserVisible ( false ) ;
184
184
} ;
185
185
186
- const placeholderRowCount = 30 ;
186
+ const placeholderRowCount = 5 ;
187
187
188
188
const placeholderData = Array . from (
189
189
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -170,7 +170,7 @@ export default function AdminVendors() {
170
170
await getAllVendors ( filters ) ;
171
171
} ;
172
172
173
- const placeholderRowCount = 30 ;
173
+ const placeholderRowCount = 5 ;
174
174
175
175
const placeholderData = Array . from (
176
176
{ length : placeholderRowCount } ,
@@ -279,10 +279,7 @@ export default function AdminVendors() {
279
279
if ( vendors ?. length ) {
280
280
for ( let i = 0 ; i < vendors . length ; i ++ ) {
281
281
const user = users . find ( ( user ) => {
282
- console . log ( user . user_id , vendors [ i ] ) ;
283
- return user . user_id === vendors [ i ] . vendor_owner
284
- ? vendors [ i ] . vendor_owner . user_id
285
- : - 1 ;
282
+ return user . user_id === vendors [ i ] . vendor_owner . user_id
286
283
} ) ;
287
284
288
285
dataItems . push ( {
Original file line number Diff line number Diff line change @@ -200,7 +200,7 @@ export default function AdminWarehouses() {
200
200
setIsEditWarehouseVisible ( false ) ;
201
201
} ;
202
202
203
- const placeholderRowCount = 30 ;
203
+ const placeholderRowCount = 5 ;
204
204
205
205
const placeholderData = Array . from (
206
206
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ export default function GeneralizedDetail({ isForSupervisor = false }) {
191
191
setIsAddMultipleRacksPopupVisible ( false ) ;
192
192
} ;
193
193
194
- const placeholderRowCount = 30 ;
194
+ const placeholderRowCount = 5 ;
195
195
196
196
const placeholderData = Array . from (
197
197
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -311,7 +311,7 @@ const OrderActiveDetails: React.FC<OrderActiveDetailsProps> = ({
311
311
} ,
312
312
] ;
313
313
314
- const placeholderRowCount = 30 ;
314
+ const placeholderRowCount = 5 ;
315
315
316
316
const placeholderData = Array . from (
317
317
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export default function ChooseTransport({
36
36
'total-volume' : acceptData ? acceptData . total_volume : 0 ,
37
37
} ;
38
38
39
- const placeholderRowCount = 30 ;
39
+ const placeholderRowCount = 5 ;
40
40
41
41
const placeholderData = Array . from (
42
42
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export default function OwnerDashboard() {
161
161
} ,
162
162
] ;
163
163
164
- const placeholderRowCount = 30 ;
164
+ const placeholderRowCount = 5 ;
165
165
166
166
const placeholderData = Array . from (
167
167
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ export default function OwnerItems() {
183
183
await getAllProducts ( filters ) ;
184
184
} ;
185
185
186
- const placeholderRowCount = 30 ;
186
+ const placeholderRowCount = 5 ;
187
187
188
188
const placeholderData = Array . from (
189
189
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ export default function OwnerUsers() {
162
162
setIsEditUserVisible ( false ) ;
163
163
} ;
164
164
165
- const placeholderRowCount = 30 ;
165
+ const placeholderRowCount = 5 ;
166
166
167
167
const placeholderData = Array . from (
168
168
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ export default function OwnerWarehouses() {
161
161
}
162
162
} ;
163
163
164
- const placeholderRowCount = 30 ;
164
+ const placeholderRowCount = 5 ;
165
165
166
166
const placeholderData = Array . from (
167
167
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -198,7 +198,7 @@ export default function Accept({
198
198
setShowColumn ( ! selectedOption . includes ( 'delivered' ) ) ;
199
199
} ;
200
200
201
- const placeholderRowCount = 30 ;
201
+ const placeholderRowCount = 5 ;
202
202
203
203
const placeholderData = Array . from (
204
204
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ export default function Preview({
166
166
} ,
167
167
] ;
168
168
169
- const placeholderRowCount = 30 ;
169
+ const placeholderRowCount = 5 ;
170
170
171
171
const placeholderData = Array . from (
172
172
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ export default function Requests() {
39
39
const location = useLocation ( ) ;
40
40
const { state } = location ;
41
41
42
- const placeholderRowCount = 30 ;
42
+ const placeholderRowCount = 5 ;
43
43
44
44
const placeholderData = Array . from (
45
45
{ length : placeholderRowCount } ,
Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ export default function Vendors() {
147
147
await getAllVendors ( filters ) ;
148
148
} ;
149
149
150
- const placeholderRowCount = 30 ;
150
+ const placeholderRowCount = 5 ;
151
151
152
152
const placeholderData = Array . from (
153
153
{ length : placeholderRowCount } ,
You can’t perform that action at this time.
0 commit comments