Handle promise linting (#5488)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -29,7 +29,7 @@ export default function useEmbeds(loadIfMissing = false) {
|
||||
}
|
||||
|
||||
if (!integrations.isLoaded && !integrations.isFetching && loadIfMissing) {
|
||||
fetchEmbedIntegrations();
|
||||
void fetchEmbedIntegrations();
|
||||
}
|
||||
}, [integrations, loadIfMissing]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user