fix: force refresh modules after closing menu (#770)
# PR Checklist - [ ] Have you checked if it works normally in all models? *Ignore this if it doesn't use models.* - [ ] Have you checked if it works normally in all web, local, and node hosted versions? If it doesn't, have you blocked it in those versions? - [ ] Have you added type definitions? # Description It seems modifying an already activated module is causing a synchronization issue with the current chats. Correcting this should fix it.
This commit is contained in:
@@ -33,9 +33,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
onDestroy(() => {
|
onDestroy(() => {
|
||||||
if(DBState.db.moduleIntergration){
|
refreshModules()
|
||||||
refreshModules()
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
{#if mode === 0}
|
{#if mode === 0}
|
||||||
|
|||||||
@@ -268,9 +268,7 @@ function getModuleByIds(ids:string[]){
|
|||||||
modules.push(module)
|
modules.push(module)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(db.moduleIntergration){
|
modules = deduplicateModuleById(modules)
|
||||||
modules = deduplicateModuleById(modules)
|
|
||||||
}
|
|
||||||
return modules
|
return modules
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user