Skip to content

Commit 602886e

Browse files
committed
fix lint
1 parent 13b1031 commit 602886e

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

apps/roam/src/components/settings/DiscourseRelationConfigPanel.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -576,24 +576,24 @@ export const RelationEditPanel = ({
576576
() =>
577577
void (async () => {
578578
const rootUid = editingRelationInfo.uid;
579-
setInputSetting({
579+
await setInputSetting({
580580
blockUid: rootUid,
581581
key: "source",
582582
value: source,
583583
});
584-
setInputSetting({
584+
await setInputSetting({
585585
blockUid: rootUid,
586586
key: "destination",
587587
value: destination,
588588
index: 1,
589589
});
590-
setInputSetting({
590+
await setInputSetting({
591591
blockUid: rootUid,
592592
key: "complement",
593593
value: complement,
594594
index: 2,
595595
});
596-
updateBlock({
596+
await updateBlock({
597597
uid: rootUid,
598598
text: label,
599599
});
@@ -1074,6 +1074,7 @@ const DiscourseRelationConfigPanel: CustomField["options"]["component"] = ({
10741074
deleteBlock(rel.uid);
10751075
setRelations(relations.filter((r) => r.uid !== rel.uid));
10761076

1077+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, @typescript-eslint/naming-convention
10771078
const { [rel.uid]: _, ...remaining } = getGlobalSettings().Relations;
10781079
setGlobalSetting(["Relations"], remaining);
10791080
};

apps/roam/src/components/settings/utils/init.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ const reconcileRelationKeys = (
233233
}
234234

235235
if (changed) {
236+
// eslint-disable-next-line @typescript-eslint/naming-convention
236237
setBlockProps(globalBlockUid, { Relations: reconciledRelations }, false);
237238
}
238239
};

0 commit comments

Comments
 (0)