fix(vue-3): copy missing provided parent values (#5396)

Co-authored-by: relchapt <reynald.lechapt@getmayday.co>
This commit is contained in:
Rirax 2024-07-26 15:43:18 +02:00 committed by GitHub
parent a1c5120a4d
commit 940f9d5266
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -46,11 +46,11 @@ export const EditorContent = defineComponent({
if (instance) {
editor.appContext = {
...instance.appContext,
provides: {
provides: Object.assign(
instance.appContext.provides,
// @ts-ignore
...instance.provides,
...instance.appContext.provides,
},
instance.provides,
),
}
}