refactor(client): remove abstract doRefresh

This commit is contained in:
Elian Doran 2025-02-11 18:59:35 +02:00
parent 8b9b843c2d
commit b69641c0e9
No known key found for this signature in database
2 changed files with 1 additions and 5 deletions

View File

@ -48,8 +48,4 @@ export default class ProtectedSessionTypeWidget extends TypeWidget {
super.doRender();
}
async doRefresh(note) {
// do nothing
}
}

View File

@ -17,7 +17,7 @@ export default abstract class TypeWidget extends NoteContextAwareWidget {
return super.doRender();
}
abstract doRefresh(note: FNote | null | undefined): Promise<void>;
doRefresh(note: FNote | null | undefined) {}
async refresh() {
const thisWidgetType = (this.constructor as any).getType();