🔧 chore(modules/config): notify :entries when calling setProperty()
This commit is contained in:
@@ -173,7 +173,6 @@ class Config<K extends NonNullable<string|number|symbol>, V extends string|objec
|
|||||||
for(let i = 0; i < pathArray.length; i++) {
|
for(let i = 0; i < pathArray.length; i++) {
|
||||||
const currentPath = pathArray[i];
|
const currentPath = pathArray[i];
|
||||||
|
|
||||||
|
|
||||||
property = property[currentPath as keyof typeof property];
|
property = property[currentPath as keyof typeof property];
|
||||||
if(typeof property === "object") {
|
if(typeof property === "object") {
|
||||||
obj = property;
|
obj = property;
|
||||||
@@ -183,6 +182,7 @@ class Config<K extends NonNullable<string|number|symbol>, V extends string|objec
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.notify("entries");
|
||||||
write && this.writeFile().catch(e => console.error(
|
write && this.writeFile().catch(e => console.error(
|
||||||
`Config: Couldn't save file. Stderr: ${e}`
|
`Config: Couldn't save file. Stderr: ${e}`
|
||||||
));
|
));
|
||||||
|
|||||||
Reference in New Issue
Block a user