diff --git a/fe_calckey/frontend/client/src/components/MkAvatars.vue b/fe_calckey/frontend/client/src/components/MkAvatars.vue
index dfc8b86..0a3d997 100644
--- a/fe_calckey/frontend/client/src/components/MkAvatars.vue
+++ b/fe_calckey/frontend/client/src/components/MkAvatars.vue
@@ -7,7 +7,7 @@
diff --git a/fe_calckey/frontend/client/src/ui/deck/bookmarks-column.vue b/fe_calckey/frontend/client/src/ui/deck/bookmarks-column.vue
index 6da9db2..771f76e 100644
--- a/fe_calckey/frontend/client/src/ui/deck/bookmarks-column.vue
+++ b/fe_calckey/frontend/client/src/ui/deck/bookmarks-column.vue
@@ -10,7 +10,7 @@
>{{ column.name }}
-
+
@@ -35,34 +35,32 @@ const emit = defineEmits<{
const userList = ref([]);
-async function fetchUserList() {
+async function fetchUserList(id: string | null) {
+ if (id === null) {
+ userList.value = [];
+ return;
+ }
+
userList.value = (
await os.api("users/lists/show", {
- listId: props.column.listId!,
+ listId: id,
})
).userIds;
}
-watch($$(props.column.listId), () => {
- if (props.column.listId == null) {
- return;
- }
+onMounted(async () => {
+ watch(
+ () => props.column.listId,
+ (id) => fetchUserList(id ?? null)
+ );
- fetchUserList();
+ await fetchUserList(props.column.listId ?? null);
});
if (props.column.listId == null) {
setList();
}
-onMounted(() => {
- if (props.column.listId == null) {
- return;
- }
-
- fetchUserList();
-});
-
async function setList() {
const lists = await os.api("users/lists/list");
const { canceled, result: list } = await os.select({