Skip to content

Commit 86c7c57

Browse files
committed
fix: create a new Vertical from a Library Unit
1 parent 9a8d55d commit 86c7c57

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/course-outline/subsection-card/SubsectionCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ const SubsectionCard = ({
186186
const handleSelectLibraryUnit = useCallback((selectedUnit) => {
187187
onAddUnitFromLibrary({
188188
type: COMPONENT_TYPES.libraryV2,
189-
category: ContainerType.Unit,
189+
category: ContainerType.Vertical,
190190
parentLocator: id,
191191
libraryContentKey: selectedUnit.usageKey,
192192
});

src/generic/key-utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export const buildCollectionUsageKey = (learningContextKey: string, collectionId
5252

5353
export enum ContainerType {
5454
Unit = 'unit',
55+
Vertical = 'vertical',
5556
}
5657

5758
/**

0 commit comments

Comments
 (0)