From 0a482d238eca36c49908cf11afcbaded13f08bbf Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Mon, 29 Mar 2021 17:26:18 +0200 Subject: [PATCH] Fix apollo cache not being properly set after picking close city Signed-off-by: Thomas Citharel --- js/src/views/Settings/Preferences.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/js/src/views/Settings/Preferences.vue b/js/src/views/Settings/Preferences.vue index 822554d51..29ae92299 100644 --- a/js/src/views/Settings/Preferences.vue +++ b/js/src/views/Settings/Preferences.vue @@ -257,6 +257,7 @@ export default class Preferences extends Vue { await this.$apollo.mutate<{ setUserSetting: string }>({ mutation: SET_USER_SETTINGS, variables: userSettings, + refetchQueries: [{ query: USER_SETTINGS }], }); } }