Clean up ESLint warnings in main (#1616)

See title.

The only place this changes behaviour is in the placeholder page list,
which will be replaced by the real one shortly, so I'm going to just
merge this.
This commit is contained in:
Emma Segal-Grossman 2024-03-19 17:22:27 -04:00 committed by GitHub
parent 21ae38362e
commit 41d6e79cb3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 8 deletions

View File

@ -66,9 +66,6 @@ export class Dialog extends SlDialog {
* TODO refactor dialog instances that self implements `form.requestSubmit`
*/
submit = () => {
const form = this.formElems[0];
if (!form) return;
form.requestSubmit();
this.formElems[0]?.requestSubmit();
};
}

View File

@ -407,7 +407,7 @@ export class PageQAToolbar extends TailwindElement {
},
);
this.fetchPage();
void this.fetchPage();
this.notify.toast({
message: msg("Successfully deleted comment."),

View File

@ -215,9 +215,7 @@ export class ArchivedItemQA extends TailwindElement {
)}
</ul>
pg ${this.pages.page} of
${this.pages
? Math.ceil(this.pages.total / this.pages.pageSize)
: "unknown"}
${Math.ceil(this.pages.total / this.pages.pageSize)}
</section>
</article>
`;