WebUI: iterate over own properties only

This commit is contained in:
Chocobo1
2024-05-08 15:43:02 +08:00
parent b07afa3ea9
commit 64dfb7e122
9 changed files with 38 additions and 5 deletions

View File

@@ -447,6 +447,9 @@
const flattenedResp = [];
const recFlatten = (current, name = "", depth = 0, fullName = "") => {
for (const child in current) {
if (!Object.hasOwn(current, child))
continue;
const currentFullName = fullName ? (fullName + "\\" + child) : child;
if (current[child].uid !== undefined) {
current[child].name = child;
@@ -671,8 +674,11 @@
};
const refreshAllFeeds = () => {
for (const feedEntry in feedData)
for (const feedEntry in feedData) {
if (!Object.hasOwn(feedData, feedEntry))
continue;
refreshFeed(feedEntry);
}
};
const moveItem = (oldPath) => {