mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-16 04:13:12 +00:00
chore: fix creator initial
This commit is contained in:
parent
f8d36ae1ef
commit
3932cabeac
@ -31,8 +31,8 @@ const CollectionSpace = () => {
|
||||
(async () => {
|
||||
try {
|
||||
const collection = await collectionStore.fetchCollectionByName(collectionName);
|
||||
await userStore.getOrFetchUserById(collection.creatorId);
|
||||
setCollection(collection);
|
||||
document.title = `${collection.title} - Slash`;
|
||||
setShortcuts([]);
|
||||
for (const shortcutId of collection.shortcutIds) {
|
||||
try {
|
||||
@ -44,6 +44,7 @@ const CollectionSpace = () => {
|
||||
// do nth
|
||||
}
|
||||
}
|
||||
document.title = `${collection.title} - Slash`;
|
||||
} catch (error: any) {
|
||||
console.error(error);
|
||||
toast.error(error.details);
|
||||
|
Loading…
x
Reference in New Issue
Block a user