Sfoglia il codice sorgente

Merge branch 'fix/133816-133817-group-to-select-in-page-grant-fix-modal-not-fetched' into feat/129126-132372-multiple-group-assign-to-pages

Futa Arai 2 anni fa
parent
commit
b26d19b16e

+ 1 - 2
apps/app/src/components/PageAlert/FixPageGrantAlert.tsx

@@ -36,7 +36,6 @@ const FixPageGrantModal = (props: ModalProps): JSX.Element => {
   // Alert message state
   // Alert message state
   const [shouldShowModalAlert, setShowModalAlert] = useState<boolean>(false);
   const [shouldShowModalAlert, setShowModalAlert] = useState<boolean>(false);
 
 
-  console.log(dataApplicableGrant);
   const applicableGroups = dataApplicableGrant[PageGrant.GRANT_USER_GROUP]?.applicableGroups;
   const applicableGroups = dataApplicableGrant[PageGrant.GRANT_USER_GROUP]?.applicableGroups;
 
 
   // Reset state when opened
   // Reset state when opened
@@ -258,7 +257,7 @@ export const FixPageGrantAlert = (): JSX.Element => {
   if (!hasParent) {
   if (!hasParent) {
     return <></>;
     return <></>;
   }
   }
-  if (dataIsGrantNormalized?.isGrantNormalized == null || !dataIsGrantNormalized.isGrantNormalized) {
+  if (dataIsGrantNormalized?.isGrantNormalized == null || dataIsGrantNormalized.isGrantNormalized) {
     return <></>;
     return <></>;
   }
   }