Skip to content

Commit

Permalink
Merge pull request #1614 from appwrite/fix-columns-error
Browse files Browse the repository at this point in the history
Columns preferences hotfix on attribute creation
  • Loading branch information
ItzNotABug authored Jan 20, 2025
2 parents d141ef0 + 78b61da commit 7f9c5d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib/stores/preferences.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ function createPreferences() {

getCustomCollectionColumns: (collectionId: string): Preferences['columns'] => {
return (
preferences[sdk.forProject.client.config.project]?.collections?.[collectionId] ??
null
preferences[sdk.forProject.client.config.project]?.collections?.[collectionId] ?? []
);
},
setLimit: (limit: Preferences['limit']) =>
Expand Down

0 comments on commit 7f9c5d4

Please sign in to comment.