Handle promise linting (#5488)

This commit is contained in:
Tom Moor
2023-06-28 20:18:18 -04:00
committed by GitHub
parent f3d8129a13
commit 89d5527d39
101 changed files with 395 additions and 343 deletions

View File

@@ -7,7 +7,7 @@ export const useDesktopTitlebar = () => {
return;
}
const handleDoubleClick = (event: MouseEvent) => {
const handleDoubleClick = async (event: MouseEvent) => {
// Ignore double clicks on interactive elements such as inputs and buttons
if (event.composedPath().some(elementIsInteractive)) {
return;
@@ -19,7 +19,7 @@ export const useDesktopTitlebar = () => {
}
event.preventDefault();
Desktop.bridge.onTitlebarDoubleClick();
await Desktop.bridge.onTitlebarDoubleClick();
};
window.addEventListener("dblclick", handleDoubleClick);

View File

@@ -29,7 +29,7 @@ export default function useEmbeds(loadIfMissing = false) {
}
if (!integrations.isLoaded && !integrations.isFetching && loadIfMissing) {
fetchEmbedIntegrations();
void fetchEmbedIntegrations();
}
}, [integrations, loadIfMissing]);