We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21631d1 commit 30e3655Copy full SHA for 30e3655
1 file changed
src/library-authoring/containers/ContainerInfoHeader.tsx
@@ -18,7 +18,7 @@ const ContainerInfoHeader = () => {
18
const intl = useIntl();
19
const [inputIsActive, setIsActive] = useState(false);
20
21
- const { readOnly } = useLibraryContext();
+ const { libraryId, readOnly } = useLibraryContext();
22
const { sidebarComponentInfo } = useSidebarContext();
23
24
const containerId = sidebarComponentInfo?.id;
@@ -27,7 +27,7 @@ const ContainerInfoHeader = () => {
27
throw new Error('containerId is required');
28
}
29
30
- const { data: container } = useContainer(containerId);
+ const { data: container } = useContainer(libraryId, containerId);
31
32
const updateMutation = useUpdateContainer(containerId);
33
const { showToast } = useContext(ToastContext);
0 commit comments