much improved collections listing page
This commit is contained in:
@@ -23,6 +23,8 @@ const useCollectionStore = create<CollectionStore>()((set) => ({
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
console.log(data);
|
||||
|
||||
if (response.ok) set({ collections: data.response });
|
||||
},
|
||||
addCollection: async (body) => {
|
||||
@@ -36,8 +38,6 @@ const useCollectionStore = create<CollectionStore>()((set) => ({
|
||||
|
||||
const data = await response.json();
|
||||
|
||||
console.log(data);
|
||||
|
||||
if (response.ok)
|
||||
set((state) => ({
|
||||
collections: [...state.collections, data.response],
|
||||
|
||||
Reference in New Issue
Block a user