chore: fix eslint crashing issues (#1951)
This commit is contained in:
@@ -18,7 +18,7 @@ const HistoryModalFooter = ({ dismissModal, noteHistoryController }: Props) => {
|
||||
|
||||
const restoreSelectedRevision = useCallback(() => {
|
||||
if (selectedRevision) {
|
||||
restoreRevision(selectedRevision)
|
||||
void restoreRevision(selectedRevision)
|
||||
dismissModal()
|
||||
}
|
||||
}, [dismissModal, restoreRevision, selectedRevision])
|
||||
|
||||
@@ -33,7 +33,7 @@ const LegacyHistoryList: FunctionComponent<Props> = ({ legacyHistory, noteHistor
|
||||
key={url}
|
||||
isSelected={selectedEntryUrl === url}
|
||||
onClick={() => {
|
||||
selectLegacyRevision(entry)
|
||||
void selectLegacyRevision(entry)
|
||||
onSelectRevision()
|
||||
}}
|
||||
>
|
||||
|
||||
@@ -48,7 +48,7 @@ const RemoteHistoryList: FunctionComponent<RemoteHistoryListProps> = ({
|
||||
key={entry.uuid}
|
||||
isSelected={(selectedEntry as RevisionListEntry)?.uuid === entry.uuid}
|
||||
onClick={() => {
|
||||
selectRemoteRevision(entry)
|
||||
void selectRemoteRevision(entry)
|
||||
onSelectRevision()
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user