File tree Expand file tree Collapse file tree
packages/super-editor/src/components/toolbar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -306,20 +306,20 @@ export class SuperToolbar extends EventEmitter {
306306
307307 /**
308308 * Toggles the ruler visibility
309- * @param {Object } _params - Command parameters (not used)
309+ * @param {Object } [ _params=null] - Command parameters (not used)
310310 * @returns {void }
311311 */
312- toggleRuler : ( _params ) => {
312+ toggleRuler : ( _params = null ) => {
313313 this . superdoc . toggleRuler ( ) ;
314314 } ,
315315
316316 /**
317317 * Initiates the image upload process
318318 * @async
319- * @param {Object } _params - Command parameters (not used)
319+ * @param {Object } [ _params=null - Command parameters (not used)
320320 * @returns {Promise<void> }
321321 */
322- startImageUpload : async ( _params ) => {
322+ startImageUpload : async ( _params = null ) => {
323323 let open = getFileOpener ( ) ;
324324 let result = await open ( ) ;
325325
You can’t perform that action at this time.
0 commit comments