From 8e8216c304465c6b5b335b8b4701fe79ab625856 Mon Sep 17 00:00:00 2001 From: Sriman Achanta <68172138+srimanachanta@users.noreply.github.com> Date: Fri, 29 Dec 2023 16:19:52 -0500 Subject: [PATCH] Update NetworkingCard.vue --- photon-client/src/components/settings/NetworkingCard.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/photon-client/src/components/settings/NetworkingCard.vue b/photon-client/src/components/settings/NetworkingCard.vue index c1b7770e34..2b1724cf31 100644 --- a/photon-client/src/components/settings/NetworkingCard.vue +++ b/photon-client/src/components/settings/NetworkingCard.vue @@ -62,6 +62,9 @@ const settingsHaveChanged = (): boolean => { const saveGeneralSettings = () => { const changingStaticIp = useSettingsStore().network.connectionType === NetworkConnectionType.Static; + // Update with new values + Object.assign(useSettingsStore().network, tempSettingsStruct.value); + useSettingsStore() .saveGeneralSettings() .then((response) => { @@ -69,7 +72,6 @@ const saveGeneralSettings = () => { message: response.data.text || response.data, color: "success" }); - Object.assign(useSettingsStore().network, tempSettingsStruct.value); }) .catch((error) => { if (error.response) {