fix: Set '@typescript-eslint/return-await' rule to 'always' for FE (no-changelog) (#8373)

This commit is contained in:
Tomi Turtiainen
2024-01-18 11:28:01 +02:00
committed by GitHub
parent fc94377036
commit 1aa35b190a
67 changed files with 348 additions and 282 deletions

View File

@@ -32,7 +32,7 @@ export const useKeyboardNavigation = defineStore('nodeCreatorKeyboardNavigation'
return element?.getAttribute(KEYBOARD_ID_ATTR) || undefined;
}
async function refreshSelectableItems(): Promise<void> {
return new Promise((resolve) => {
return await new Promise((resolve) => {
// Wait for DOM to update
cleanupSelectableItems();
setTimeout(() => {