Skip to content

Commit

Permalink
Merge pull request #156 from bcgov/get-bucket-fix
Browse files Browse the repository at this point in the history
Poll userId before fetching buckets list
  • Loading branch information
jujaga authored Dec 27, 2023
2 parents 9c587e5 + 8cc496a commit f027066
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/components/bucket/BucketList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ const closeBucketConfig = () => {
};
onMounted(async () => {
while (!getUserId.value) {
await new Promise((r) => {
setTimeout(r, 500);
});
}
await bucketStore.fetchBuckets({ userId: getUserId.value, objectPerms: true });
});
</script>
Expand Down

0 comments on commit f027066

Please sign in to comment.