Fix packing ySyncPluginOptions error (#5101)

* Fix package ySyncPluginOptions error

* remove semi
This commit is contained in:
icode 2024-04-30 23:25:56 +08:00 committed by GitHub
parent 7343c518ae
commit ad89de3c86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -153,9 +153,11 @@ export const Collaboration = Extension.create<CollaborationOptions>({
}
}
const options = this.options.ySyncOptions
const onFirstRender = this.options.onFirstRender
const ySyncPluginOptions: YSyncOpts = {
...(this.options.ySyncOptions ? { ...this.options.ySyncOptions } : {}),
...(this.options.onFirstRender ? { ...this.options.onFirstRender } : {}),
...(options ? { ...options } : {}),
...(onFirstRender ? { onFirstRender } : {}),
}
const ySyncPluginInstance = ySyncPlugin(fragment, ySyncPluginOptions)