File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
forms-flow-rsbcservice/src/storage Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 11export const REACT_APP_FORM_ID_12HOUR_LIMIT = ( window . _env_ && window . _env_ . REACT_APP_FORM_ID_12HOUR_LIMIT ) || 5 ;
22export const REACT_APP_FORM_ID_24HOUR_LIMIT = ( window . _env_ && window . _env_ . REACT_APP_FORM_ID_24HOUR_LIMIT ) || 5 ;
3- export const REACT_APP_FORM_ID_VI_LIMIT = ( window . _env_ && window . _env_ . REACT_APP_FORM_ID_VI_LIMIT ) || 5 ;
3+ export const REACT_APP_FORM_ID_VI_LIMIT = ( window . _env_ && window . _env_ . REACT_APP_FORM_ID_VI_LIMIT ) || 5 ;
4+ export const REACT_APP_FORM_ID_MV6020_LIMIT = ( window . _env_ && window . _env_ . REACT_APP_FORM_ID_MV6020_LIMIT ) || 5 ;
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import { getUserRoles } from "../request/getUserRolesApi";
1616import {
1717 REACT_APP_FORM_ID_12HOUR_LIMIT ,
1818 REACT_APP_FORM_ID_24HOUR_LIMIT ,
19+ REACT_APP_FORM_ID_MV6020_LIMIT ,
1920 REACT_APP_FORM_ID_VI_LIMIT ,
2021} from "./config" ;
2122
@@ -228,11 +229,16 @@ class OfflineSaveService {
228229 0 ,
229230 REACT_APP_FORM_ID_VI_LIMIT - ( countByFormType [ "VI" ] || 0 )
230231 ) ;
232+ const requiredMV6020 = Math . max (
233+ 0 ,
234+ REACT_APP_FORM_ID_MV6020_LIMIT - ( countByFormType [ "MV6020" ] || 0 )
235+ ) ;
231236 try {
232237 const requiredIds = {
233238 "12Hour" : required12Hour ,
234239 "24Hour" : required24Hour ,
235- VI : requiredVI ,
240+ "VI" : requiredVI ,
241+ "MV6020" : requiredMV6020 ,
236242 } ;
237243
238244 await fetchFormIDs (
You can’t perform that action at this time.
0 commit comments