Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
KonnorRogers committed Apr 23, 2024
1 parent d0da386 commit 9ab1efe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions src/exports/elements/attachment-editor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export class AttachmentEditor extends BaseElement {
showMetadata?: boolean;
loadingState?: LoadingState;
fileUploadErrorMessage?: TemplateResult | string;
removeFigure: () => void
removeFigure: () => void;

constructor() {
super();
this.loadingState = "not-started";
this.fileUploadErrorMessage = fileUploadErrorMessage;

this.removeFigure = () => {}
this.removeFigure = () => {};
}

static baseName = "rhino-attachment-editor";
Expand Down Expand Up @@ -208,8 +208,8 @@ export class AttachmentEditor extends BaseElement {
class="delete-button"
part="delete-button"
@pointerdown=${(e: PointerEvent) => {
e.preventDefault()
this.removeFigure()
e.preventDefault();
this.removeFigure();
}}
>
${this.close()}
Expand Down
8 changes: 4 additions & 4 deletions src/exports/extensions/attachment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -718,11 +718,11 @@ export const Attachment = Node.create<AttachmentOptions>({

const { tr } = view.state;

const pos = getPos()
tr.delete(pos, pos + 1)
view.dispatch(tr)
const pos = getPos();
tr.delete(pos, pos + 1);
view.dispatch(tr);
}
}
};

const template = html`
<figure
Expand Down

0 comments on commit 9ab1efe

Please sign in to comment.