Skip to content

Commit

Permalink
Fix can't add callout to VC KnowledgeBase. (#7437)
Browse files Browse the repository at this point in the history
Co-authored-by: Valentin Yanakiev <valentin.yanakiev@gmail.com>
  • Loading branch information
bobbykolev and valentinyanakiev authored Jan 14, 2025
1 parent 50c6e22 commit b6bf111
Showing 1 changed file with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,30 +38,30 @@ const KnowledgeBaseDialog = ({ onClose, title, id }: KnowledgeBaseDialogProps) =
<DialogWithGrid open columns={10}>
<DialogHeader onClose={onClose} title={title} />
<DialogContent>
<Gutters disablePadding>
{(knowledgeBaseDescription || canCreateCallout) && (
<StorageConfigContextProvider locationType="virtualContributor" virtualContributorId={id}>
<StorageConfigContextProvider locationType="virtualContributor" virtualContributorId={id}>
<Gutters disablePadding>
{(knowledgeBaseDescription || canCreateCallout) && (
<DescriptionComponent
description={knowledgeBaseDescription}
canEdit={canCreateCallout}
onUpdate={updateDescription}
/>
</StorageConfigContextProvider>
)}
<CalloutsGroupView
calloutsSetId={calloutsSetId}
callouts={callouts}
canCreateCallout={canCreateCallout}
loading={loading}
journeyTypeName="space"
onSortOrderUpdate={onCalloutsSortOrderUpdate}
onCalloutUpdate={refetchCallout}
groupName={CalloutGroupName.Knowledge}
createButtonPlace="bottom"
availableCalloutTypes={AVAILABLE_CALLOUT_TYPES}
disableRichMedia
/>
</Gutters>
)}
<CalloutsGroupView
calloutsSetId={calloutsSetId}
callouts={callouts}
canCreateCallout={canCreateCallout}
loading={loading}
journeyTypeName="space"
onSortOrderUpdate={onCalloutsSortOrderUpdate}
onCalloutUpdate={refetchCallout}
groupName={CalloutGroupName.Knowledge}
createButtonPlace="bottom"
availableCalloutTypes={AVAILABLE_CALLOUT_TYPES}
disableRichMedia
/>
</Gutters>
</StorageConfigContextProvider>
</DialogContent>
{canCreateCallout && (
<DialogActions>
Expand Down

0 comments on commit b6bf111

Please sign in to comment.