diff --git a/packages/hoppscotch-common/src/newstore/collections.ts b/packages/hoppscotch-common/src/newstore/collections.ts index 3af04789f..3ceedfd85 100644 --- a/packages/hoppscotch-common/src/newstore/collections.ts +++ b/packages/hoppscotch-common/src/newstore/collections.ts @@ -108,7 +108,7 @@ export function cascadeParentCollectionForHeaderAuth( if (parentFolderAuth?.authType === "inherit" && isRootCollection) { auth = { - parentID: parentFolder.id ?? folderPath, + parentID: folderPath, parentName: parentFolder.name, inheritedAuth: { authType: "none", @@ -119,7 +119,7 @@ export function cascadeParentCollectionForHeaderAuth( if (parentFolderAuth?.authType !== "inherit") { auth = { - parentID: parentFolder.id ?? folderPath, + parentID: folderPath, parentName: parentFolder.name, inheritedAuth: parentFolderAuth, }