We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cec074e commit a6a4ac3Copy full SHA for a6a4ac3
1 file changed
src/library-authoring/data/apiHooks.ts
@@ -814,6 +814,8 @@ export const useAddItemsToContainer = (containerId?: string) => {
814
// It would be complex to bring the entire hierarchy and only update the items within that hierarchy.
815
queryClient.invalidateQueries({ queryKey: libraryAuthoringQueryKeys.containerHierarchy(undefined) });
816
queryClient.invalidateQueries({ queryKey: xblockQueryKeys.componentHierarchy(undefined) });
817
+ // Invalidate the container to update its publish status
818
+ queryClient.invalidateQueries({ queryKey: libraryAuthoringQueryKeys.container(containerId) });
819
820
const containerType = getBlockType(containerId);
821
if (containerType === 'section') {
0 commit comments