Skip to content

Commit

Permalink
Fix crash on content create when assigning references (#4954)
Browse files Browse the repository at this point in the history
  • Loading branch information
Droniu authored Jun 13, 2024
1 parent 11565c0 commit cbfd004
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/views/PageCreate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export const PageCreate: React.FC<PageCreateProps> = ({ params }) => {
const handleAssignAttributeReferenceClick = (attribute: AttributeInput) =>
navigate(
pageCreateUrl({
...params,
action: "assign-attribute-value",
id: attribute.id,
}),
Expand Down Expand Up @@ -227,7 +228,9 @@ export const PageCreate: React.FC<PageCreateProps> = ({ params }) => {
fetchMoreReferenceProducts={fetchMoreReferenceProducts}
fetchAttributeValues={searchAttributeValues}
fetchMoreAttributeValues={fetchMoreAttributeValues}
onCloseDialog={() => navigate(pageCreateUrl())}
onCloseDialog={() =>
navigate(pageCreateUrl({ "page-type-id": params["page-type-id"] }))
}
selectedPageType={selectedPageType?.pageType}
onSelectPageType={handleSelectPageTypeId}
onAttributeSelectBlur={searchAttributeReset}
Expand Down

0 comments on commit cbfd004

Please sign in to comment.