Skip to content

Commit 30e3655

Browse files
committed
fix: useContainer api usage
1 parent 21631d1 commit 30e3655

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/library-authoring/containers/ContainerInfoHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ContainerInfoHeader = () => {
1818
const intl = useIntl();
1919
const [inputIsActive, setIsActive] = useState(false);
2020

21-
const { readOnly } = useLibraryContext();
21+
const { libraryId, readOnly } = useLibraryContext();
2222
const { sidebarComponentInfo } = useSidebarContext();
2323

2424
const containerId = sidebarComponentInfo?.id;
@@ -27,7 +27,7 @@ const ContainerInfoHeader = () => {
2727
throw new Error('containerId is required');
2828
}
2929

30-
const { data: container } = useContainer(containerId);
30+
const { data: container } = useContainer(libraryId, containerId);
3131

3232
const updateMutation = useUpdateContainer(containerId);
3333
const { showToast } = useContext(ToastContext);

0 commit comments

Comments
 (0)