File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -397,7 +397,6 @@ export class TipTapEditorBase extends BaseElement {
397
397
this . __addPendingAttachment = this . __addPendingAttachment . bind ( this ) ;
398
398
this . __removePendingAttachment = this . __removePendingAttachment . bind ( this ) ;
399
399
400
-
401
400
this . registerDependencies ( ) ;
402
401
this . addEventListener ( AddAttachmentEvent . eventName , this . handleAttachment ) ;
403
402
@@ -426,13 +425,15 @@ export class TipTapEditorBase extends BaseElement {
426
425
this . pendingAttachments . push ( e . attachmentUpload ) ;
427
426
}
428
427
429
-
430
428
/**
431
429
* @private
432
430
*/
433
- __removePendingAttachment ( e : { attachment : AttachmentManager } | { attachmentUpload : AttachmentUpload } ) {
431
+ __removePendingAttachment (
432
+ e :
433
+ | { attachment : AttachmentManager }
434
+ | { attachmentUpload : AttachmentUpload } ,
435
+ ) {
434
436
const index = this . pendingAttachments . findIndex ( ( attachment ) => {
435
-
436
437
// This is what you get from an attachment upload finishing.
437
438
if ( "attachmentUpload" in e ) {
438
439
return attachment === e . attachmentUpload ;
@@ -443,7 +444,7 @@ export class TipTapEditorBase extends BaseElement {
443
444
return attachment . attachment . attachmentId === e . attachment . attachmentId ;
444
445
}
445
446
446
- return false
447
+ return false ;
447
448
} ) ;
448
449
449
450
if ( index > - 1 ) {
You can’t perform that action at this time.
0 commit comments