From 94627f613e3b20409640ef512359de0b22cb48d1 Mon Sep 17 00:00:00 2001 From: MattIPv4 Date: Mon, 28 Feb 2022 22:25:12 +0000 Subject: [PATCH] Fix reactivity of imported domains (the object gets replaced by a proxy) --- src/nginxconfig/util/import_data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nginxconfig/util/import_data.js b/src/nginxconfig/util/import_data.js index fbd95ed..2465e77 100644 --- a/src/nginxconfig/util/import_data.js +++ b/src/nginxconfig/util/import_data.js @@ -1,5 +1,5 @@ /* -Copyright 2021 DigitalOcean +Copyright 2022 DigitalOcean This code is licensed under the MIT License. You may obtain a copy of the License at @@ -109,7 +109,7 @@ export default (query, domains, global, nextTick) => new Promise(resolve => { domains.push(domainImported); // Apply the initial values on the next Vue tick, once the watchers are ready - nextTick(() => applyCategories(data.domains[i], domainImported)); + nextTick(() => applyCategories(data.domains[i], domains[domains.length - 1])); } } else { // If no configured domains, add a single default