Fix an error when logging out was causing state issues
This commit is contained in:
@@ -45,16 +45,15 @@ const creatorIdWatcher = watch(
|
||||
(newCreatorId) => {
|
||||
if (newCreatorId) {
|
||||
// Reset contents and last_id when the creatorId changes
|
||||
contents.value = [];
|
||||
last_id = null;
|
||||
contents.value = []
|
||||
last_id = null
|
||||
// Fetch contents for the new creator
|
||||
fetchContents({
|
||||
done: () => {
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
{immediate: true})
|
||||
})
|
||||
|
||||
async function fetchContents({done}) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user