Skip to content

Commit

Permalink
update create storage bucket (#2264)
Browse files Browse the repository at this point in the history
  • Loading branch information
FSM1 authored Mar 22, 2023
1 parent dacaa1a commit 6b5e57d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/storage-ui/src/Contexts/StorageContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,9 @@ const StorageProvider = ({ children }: StorageContextProps) => {
setPins(pinsResult.results || [])
// are there more pins
if (
pinsResult.results?.length &&
pinsResult.count &&
pinsResult.results.length < pinsResult.count
pinsResult.results?.length &&
pinsResult.count &&
pinsResult.results.length < pinsResult.count
) {
pinsParams.pinsRange.before
? setIsNextPinsPage(true)
Expand Down Expand Up @@ -182,7 +182,7 @@ const StorageProvider = ({ children }: StorageContextProps) => {
before: new Date(newBeforeDate)
}
})
}, [pins, pinsParams ])
}, [pins, pinsParams])

const onPreviousPins = useCallback(() => {
if (!pins.length || pinsParams.pageNumber === 1) return
Expand Down Expand Up @@ -300,7 +300,6 @@ const StorageProvider = ({ children }: StorageContextProps) => {
return storageApiClient.createBucket({
name,
type: "fps",
public: "read",
encryption_key: "",
file_system_type: fileSystemType
})
Expand Down

0 comments on commit 6b5e57d

Please sign in to comment.