File tree Expand file tree Collapse file tree
apps/admin-app-repo/src/pages
libs/shared-lib-v2/src/DynamicForm/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ const ContentCreator = () => {
223223 ) ;
224224 const staticFilter = {
225225 role : RoleName . CONTENT_CREATOR ,
226- tenantId : storedUserData . tenantData [ 0 ] . tenantId ,
226+ // tenantId: storedUserData.tenantData[0].tenantId,
227227 } ;
228228 const { sortBy } = formData ;
229229 const staticSort = [ 'firstName' , sortBy || 'asc' ] ;
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ const ContentReviewer = () => {
223223 ) ;
224224 const staticFilter = {
225225 role : RoleName . CONTENT_REVIEWER ,
226- tenantId : storedUserData . tenantData [ 0 ] . tenantId ,
226+ // tenantId: storedUserData.tenantData[0].tenantId,
227227 } ;
228228 const { sortBy } = formData ;
229229 const staticSort = [ 'firstName' , sortBy || 'asc' ] ;
Original file line number Diff line number Diff line change @@ -485,7 +485,7 @@ const Mobilizer = () => {
485485 ) ;
486486 const staticFilter = {
487487 role : RoleName . MOBILIZER ,
488- tenantId : storedUserData . tenantData [ 0 ] . tenantId ,
488+ // tenantId: storedUserData.tenantData[0].tenantId,
489489 } ;
490490 const { sortBy } = formData ;
491491 const staticSort = [ 'firstName' , sortBy || 'asc' ] ;
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ const StateLead = () => {
223223 ) ;
224224 const staticFilter = {
225225 role : RoleName . STATE_LEAD ,
226- tenantId : storedUserData . tenantData [ 0 ] . tenantId ,
226+ // tenantId: storedUserData.tenantData[0].tenantId,
227227 } ;
228228 const { sortBy } = formData ;
229229 const staticSort = [ 'firstName' , sortBy || 'asc' ] ;
Original file line number Diff line number Diff line change @@ -820,7 +820,7 @@ const DynamicForm = forwardRef(({
820820 // setFormData;
821821 //fix for auto submit and render
822822 if ( ! prefilledFormData || Object . keys ( prefilledFormData ) . length === 0 ) {
823- if ( isCallSubmitInHandle == undefined || isCallSubmitInHandle == null || isCallSubmitInHandle == false )
823+ if ( isCallSubmitInHandle == undefined || isCallSubmitInHandle == null || isCallSubmitInHandle == false || type === 'centers' )
824824 {
825825 if ( type !== 'centers' ) prefilledFormData = { test : 'test' } ;
826826 else prefilledFormData = { type : 'COHORT' } ;
You can’t perform that action at this time.
0 commit comments