chore(prettier): fix all files

This commit is contained in:
Elian Doran
2025-01-09 18:07:02 +02:00
parent 19ee861699
commit 4cbb529fd4
571 changed files with 23226 additions and 23940 deletions

View File

@@ -28,26 +28,22 @@ export default class ButtonFromNoteWidget extends CommandButtonWidget {
return;
}
froca.getNote(buttonNoteId).then(note => {
froca.getNote(buttonNoteId).then((note) => {
this.settings.icon = note.getIcon();
this.refreshIcon();
});
}
entitiesReloadedEvent({loadResults}) {
entitiesReloadedEvent({ loadResults }) {
const buttonNote = froca.getNoteFromCache(this.buttonNoteIdProvider());
if (!buttonNote) {
return;
}
if (loadResults.getAttributeRows(this.componentId).find(attr =>
attr.type === 'label'
&& attr.name === 'iconClass'
&& attributeService.isAffecting(attr, buttonNote))) {
if (loadResults.getAttributeRows(this.componentId).find((attr) => attr.type === "label" && attr.name === "iconClass" && attributeService.isAffecting(attr, buttonNote))) {
this.updateIcon();
}
}
}
}