Skip to content

Commit

Permalink
Merge pull request #1951 from slntopp/dev-vpn
Browse files Browse the repository at this point in the history
hot fix config empty
  • Loading branch information
SazukinPavel authored Dec 24, 2024
2 parents 81da8b3 + f17e214 commit 3859783
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion admin-ui/src/store/instances.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,13 @@ export default {
try {
const response = await getters["instancesClient"].get({ uuid });
const data = response.toJson();
commit("setOne", { config: {}, ...data });
commit("setOne", {
...data,
instance: {
...data.instance,
config: !data.instance.config ? {} : data.instance.config,
},
});

return data;
} finally {
Expand Down

0 comments on commit 3859783

Please sign in to comment.