Skip to content

Commit f561cfc

Browse files
committed
fix: resolve conflicts
1 parent 8f52971 commit f561cfc

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/library-authoring/components/ContainerCard.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ type ContainerCardPreviewProps = {
5858
};
5959

6060
const ContainerCardPreview = ({ containerId, showMaxChildren = 5 }: ContainerCardPreviewProps) => {
61-
const { data, isLoading, isError } = useContainerChildren(containerId);
61+
const { libraryId } = useLibraryContext();
62+
const { data, isLoading, isError } = useContainerChildren(libraryId, containerId);
6263
if (isLoading || isError) {
6364
return null;
6465
}

src/library-authoring/data/api.mocks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ mockGetContainerChildren.childTemplate = {
545545
} satisfies api.LibraryBlockMetadata;
546546
/** Apply this mock. Returns a spy object that can tell you if it's been called. */
547547
mockGetContainerChildren.applyMock = () => {
548-
jest.spyOn(api, 'getContainerChildren').mockImplementation(mockGetContainerChildren);
548+
jest.spyOn(api, 'getLibraryContainerChildren').mockImplementation(mockGetContainerChildren);
549549
};
550550

551551
/**

src/library-authoring/data/apiHooks.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,6 @@ export const libraryAuthoringQueryKeys = {
107107
'blockTypes',
108108
libraryId,
109109
],
110-
container: (libraryId?: string, containerId?: string) => [
111-
...libraryAuthoringQueryKeys.all,
112-
libraryId,
113-
containerId,
114-
],
115110
};
116111

117112
export const xblockQueryKeys = {

0 commit comments

Comments
 (0)