File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ const getNamespaces = async () => {
3232 isLoading .value = false
3333}
3434
35- getNamespaces ()
35+ await getNamespaces ()
3636
37- const handleSort = (by ) => {
37+ const handleSort = async (by ) => {
3838 switch (sort .dir ) {
3939 case " desc" :
4040 if (sort .by == by) sort .dir = " asc"
@@ -48,7 +48,7 @@ const handleSort = (by) => {
4848
4949 sort .by = by
5050
51- getNamespaces ()
51+ await getNamespaces ()
5252}
5353 </script >
5454
Original file line number Diff line number Diff line change @@ -317,7 +317,7 @@ const getTransactions = async () => {
317317 isRefetching .value = false
318318}
319319
320- getTransactions ()
320+ await getTransactions ()
321321
322322onBeforeMount (() => {
323323 if (localStorage .getItem (" page:transactions:config:columns" )) {
@@ -328,31 +328,31 @@ onBeforeMount(() => {
328328/** Refetch transactions */
329329watch (
330330 () => route .query ,
331- () => {
331+ async () => {
332332 if (! isRefetching .value ) {
333333 if (Object .keys (route .query ).length ) {
334334 parseRouteQuery ()
335335 } else {
336336 resetFilters ()
337337 }
338338
339- getTransactions ()
339+ await getTransactions ()
340340 }
341341 },
342342)
343343
344344watch (
345345 () => page .value ,
346346 async () => {
347- getTransactions ()
347+ await getTransactions ()
348348 updateRouteQuery ()
349349 },
350350)
351351
352352watch (
353353 () => findPFB .value ,
354- () => {
355- getTransactions ()
354+ async () => {
355+ await getTransactions ()
356356 },
357357)
358358
@@ -363,7 +363,7 @@ watch(
363363 }
364364)
365365
366- const handleSort = (by ) => {
366+ const handleSort = async (by ) => {
367367 /** temp. only for time */
368368 if (! [" time" ].includes (by)) return
369369
@@ -384,7 +384,7 @@ const handleSort = (by) => {
384384 page .value = 1
385385 }
386386
387- getTransactions ()
387+ await getTransactions ()
388388}
389389
390390const handlePrev = () => {
You can’t perform that action at this time.
0 commit comments