We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 590ce38 commit d108be7Copy full SHA for d108be7
packages/webiny-app-cms/src/admin/views/Pages/Pages.js
@@ -69,7 +69,7 @@ export default compose(
69
withHandlers({
70
createPage: ({ createMutation, history, showSnackbar }) => async category => {
71
try {
72
- const res = await createMutation({ variables: { category } });
+ const res = await createMutation({ variables: { category }, refetchQueries: ["CmsListPages"] });
73
const { data } = res.data.cms.page;
74
history.push(`/cms/editor/${data.id}`);
75
} catch (e) {
0 commit comments