🔧 chore(modules/config): notify :entries when calling setProperty()

This commit is contained in:
retrozinndev
2025-08-29 13:55:15 -03:00
parent 524995e05d
commit aef372d499
+1 -1
View File
@@ -172,7 +172,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") {
@@ -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}`
)); ));