Skip to content

Commit

Permalink
Fix loading spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
adrinr committed May 10, 2023
1 parent ce91410 commit 5a7d213
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@
}
$: filteredGroups = filterGroups($groups, searchString)
$: console.log($groups)
const filterGroups = (groups, searchString) => {
if (!searchString) {
return groups
Expand Down Expand Up @@ -146,6 +148,7 @@
<Table
on:click={({ detail }) => $goto(`./${detail._id}`)}
{schema}
loading={!$groups}
data={filteredGroups}
allowEditColumns={false}
allowEditRows={false}
Expand Down
2 changes: 1 addition & 1 deletion packages/builder/src/stores/portal/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { API } from "api"
import { licensing } from "stores/portal"

export function createGroupsStore() {
const store = writable([])
const store = writable(undefined)

const updateStore = group => {
store.update(state => {
Expand Down

0 comments on commit 5a7d213

Please sign in to comment.