fix: some random error that i cant properly reproduce but still can fix
This commit is contained in:
parent
85a758ee15
commit
c7da3b749a
@ -18,7 +18,7 @@
|
|||||||
export let list: Group[];
|
export let list: Group[];
|
||||||
export let members: Member[];
|
export let members: Member[];
|
||||||
|
|
||||||
$: memberlist = members.map(function(member) { return {name: member.name, shortid: member.id, id: member.uuid, display_name: member.display_name}; }).sort((a, b) => a.name.localeCompare(b.name));
|
$: memberlist = members && members.map(function(member) { return {name: member.name, shortid: member.id, id: member.uuid, display_name: member.display_name}; }).sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
let token = localStorage.getItem("pk-token");
|
let token = localStorage.getItem("pk-token");
|
||||||
let listLoading = true;
|
let listLoading = true;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
export let list: Member[] = [];
|
export let list: Member[] = [];
|
||||||
export let groups: Group[] = [];
|
export let groups: Group[] = [];
|
||||||
|
|
||||||
$: grouplist = groups.map(function(group) { return {name: group.name, shortid: group.id, id: group.uuid, members: group.members, display_name: group.display_name}; }).sort((a, b) => a.name.localeCompare(b.name));
|
$: grouplist = groups && groups.map(function(group) { return {name: group.name, shortid: group.id, id: group.uuid, members: group.members, display_name: group.display_name}; }).sort((a, b) => a.name.localeCompare(b.name));
|
||||||
|
|
||||||
let token = localStorage.getItem("pk-token");
|
let token = localStorage.getItem("pk-token");
|
||||||
let listLoading = true;
|
let listLoading = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user