diff --git a/src/core/treeNodeValue.ts b/src/core/treeNodeValue.ts index 0935982d1..d3b9df7c4 100644 --- a/src/core/treeNodeValue.ts +++ b/src/core/treeNodeValue.ts @@ -116,10 +116,10 @@ class _TreeNodeValueBase { * @param key - key to remove from the override, e.g. path, name, etc */ removeOverride(key: keyof CustomRouteBlock) { - this._overrides.forEach((routeBlock) => { + for (const [_filePath, routeBlock] of this._overrides) { // @ts-expect-error delete routeBlock[key] - }) + } } /**