Skip to content

Commit

Permalink
Revert "loaded project tabs to used for setting navigation after save."
Browse files Browse the repository at this point in the history
This reverts commit a30280c.
  • Loading branch information
matbusby-fw committed Oct 17, 2024
1 parent a30280c commit 03fb527
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ import {
AMS_STATUS_CODES_SUCCESS,
AMS_STATUS_CODE_FAIL,
AMS_ENVIRONMENTAL_MANAGEMENT_ACT_TYPES,
SystemFlagEnum,
} from "@mds/common";
import { useFeatureFlag } from "@mds/common/providers/featureFlags/useFeatureFlag";
import { fetchRegions } from "@mds/common/redux/slices/regionsSlice";
import { getSystemFlag } from "@mds/common/redux/selectors/authenticationSelectors";

interface IParams {
mineGuid?: string;
Expand All @@ -53,8 +51,6 @@ export const ProjectSummaryPage = () => {
const dispatch = useDispatch();
const history = useHistory();
const location = useLocation();
const systemFlag = useSelector(getSystemFlag);
const isCore = systemFlag === SystemFlagEnum.core;

const { mineGuid, projectGuid, projectSummaryGuid, tab } = useParams<IParams>();
const anyTouched = useSelector(
Expand All @@ -75,11 +71,7 @@ export const ProjectSummaryPage = () => {
: mine?.mine_guid === mineGuid;
const [isLoaded, setIsLoaded] = useState(isDefaultLoaded);
const [isEditMode, setIsEditMode] = useState(isDefaultEditMode);
const projectFormTabs = getProjectFormTabs(
amsFeatureEnabled,
isCore,
isFeatureEnabled(Feature.MAJOR_PROJECT_REFACTOR)
);
const projectFormTabs = null;
const activeTab = tab ?? projectFormTabs[0];

const handleFetchData = async () => {
Expand Down

0 comments on commit 03fb527

Please sign in to comment.