mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -06:00
WebUI: iterate over own properties only
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user