Browse Source

fix: minor change

nivedin 1 year ago
parent
commit
16bbfec736
1 changed files with 2 additions and 2 deletions
  1. 2 2
      packages/hoppscotch-common/src/newstore/collections.ts

+ 2 - 2
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,
       }