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