Skip to content

Commit

Permalink
fix: try partial ObjectPage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
OliwiaGowor committed Dec 6, 2024
1 parent a9399c6 commit 20d8ad7
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ export const DynamicPageComponent = ({
titleArea={headerTitle}
headerArea={customHeaderContent ?? headerContent}
selectedSectionId={selectedSectionIdState}
onBeforeNavigate={e => {
onSelectedSectionChange={e => {
if (isFormOpen.formOpen) {
e.preventDefault();
}
Expand All @@ -363,14 +363,14 @@ export const DynamicPageComponent = ({
isFormOpen,
setIsFormOpen,
() => {
setSelectedSectionIdState(e.detail.sectionId);
setSelectedSectionIdState(e.detail.selectedSectionId);
setIsResourceEdited({
isEdited: false,
});
},
);

if (e.detail.sectionId === 'edit') {
if (e.detail.selectedSectionId === 'edit') {
setIsFormOpen({ formOpen: true });
}
}}
Expand Down

0 comments on commit 20d8ad7

Please sign in to comment.