fix instance code
This commit is contained in:
@@ -118,7 +118,7 @@ async function updateInstances(): Promise<void> {
|
|||||||
const existingInstance = instanceNames.get(instance.name);
|
const existingInstance = instanceNames.get(instance.name);
|
||||||
if (existingInstance) {
|
if (existingInstance) {
|
||||||
for (const key of Object.keys(instance)) {
|
for (const key of Object.keys(instance)) {
|
||||||
if (!existingInstance[key]) {
|
if (!(key in existingInstance)) {
|
||||||
existingInstance[key] = instance[key];
|
existingInstance[key] = instance[key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user