Skip to content

Commit d108be7

Browse files
committed
fix: refetch CmsListPages on new page create
1 parent 590ce38 commit d108be7

File tree

1 file changed

+1
-1
lines changed
  • packages/webiny-app-cms/src/admin/views/Pages

1 file changed

+1
-1
lines changed

packages/webiny-app-cms/src/admin/views/Pages/Pages.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export default compose(
6969
withHandlers({
7070
createPage: ({ createMutation, history, showSnackbar }) => async category => {
7171
try {
72-
const res = await createMutation({ variables: { category } });
72+
const res = await createMutation({ variables: { category }, refetchQueries: ["CmsListPages"] });
7373
const { data } = res.data.cms.page;
7474
history.push(`/cms/editor/${data.id}`);
7575
} catch (e) {

0 commit comments

Comments
 (0)