mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 14:49:10 +03:00
fix: loading invoices on hard reload
This commit is contained in:
1 parent
7ef85772c0
commit
c8f89be2cf
1 file changed
+3
-1
@@ -27,6 +27,8 @@ const Invoices: FC<Props> = ({ projectRef }) => {
|
||||
const offset = (page - 1) * PAGE_LIMIT
|
||||
|
||||
useEffect(() => {
|
||||
if (!projectRef) return
|
||||
|
||||
let cancel = false
|
||||
const page = 1
|
||||
|
||||
@@ -48,7 +50,7 @@ const Invoices: FC<Props> = ({ projectRef }) => {
|
||||
return () => {
|
||||
cancel = true
|
||||
}
|
||||
}, [])
|
||||
}, [projectRef])
|
||||
|
||||
const fetchInvoices = async (page: number) => {
|
||||
setLoading(true)
|
||||
|
||||
Reference in new issue
Block a user