mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-11-27 23:15:15 +08:00
Fix packing ySyncPluginOptions error (#5101)
* Fix package ySyncPluginOptions error * remove semi
This commit is contained in:
parent
7343c518ae
commit
ad89de3c86
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user