Skip to content

Commit

Permalink
Merge pull request #108 from intechstudio/fix/config-link-copy
Browse files Browse the repository at this point in the history
Fix config handling when not logged in, remove configlinks collection
  • Loading branch information
danim1130 authored Jan 8, 2025
2 parents b794a06 + c40ae41 commit 68ba7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/lib/collections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@ const createCollection = <T = DocumentData>(collectionName: string) => {
};

export const configsCollection = createCollection<CloudConfig>("configs");
export const configLinksCollection = createCollection<CloudConfig>("configLinks");
export const userCollection = createCollection("users");
export const usernameCollection = createCollection("usernames");
3 changes: 2 additions & 1 deletion src/lib/configmanager/ConfigManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ export function createConfigManager(observer: {
...latestConfig,
id: key,
isEditable:
(latestConfig as CloudConfig)?.access?.includes(currentOwnerId ?? "") ?? true,
(latestConfig as CloudConfig)?.access?.includes(currentOwnerId ?? "NO-ID") ??
true,
syncStatus: syncStatus,
public: value.cloud?.public
});
Expand Down

0 comments on commit 68ba7bf

Please sign in to comment.