mirror of
https://github.com/digitalocean/nginxconfig.io.git
synced 2025-08-28 22:55:47 +08:00
Fix reactivity of imported domains (the object gets replaced by a proxy)
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
Copyright 2021 DigitalOcean
|
Copyright 2022 DigitalOcean
|
||||||
|
|
||||||
This code is licensed under the MIT License.
|
This code is licensed under the MIT License.
|
||||||
You may obtain a copy of the License at
|
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);
|
domains.push(domainImported);
|
||||||
|
|
||||||
// Apply the initial values on the next Vue tick, once the watchers are ready
|
// 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 {
|
} else {
|
||||||
// If no configured domains, add a single default
|
// If no configured domains, add a single default
|
||||||
|
Reference in New Issue
Block a user