From c6457fe91e109727299991a3f367b43d6f726d63 Mon Sep 17 00:00:00 2001 From: Olga Bulat Date: Thu, 7 Dec 2023 07:32:37 +0300 Subject: [PATCH] Lint Signed-off-by: Olga Bulat --- frontend/src/composables/use-floating-ui.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/composables/use-floating-ui.ts b/frontend/src/composables/use-floating-ui.ts index f04b25bdc65..3c4c5811309 100644 --- a/frontend/src/composables/use-floating-ui.ts +++ b/frontend/src/composables/use-floating-ui.ts @@ -74,7 +74,9 @@ export function useFloatingUi({ floatingElRef, floatingPropsRefs }: Props) { cleanup.value?.() return } - if (!visible) return + if (!visible) { + return + } cleanup.value = buildAutoUpdate(triggerElement, floatingElement) @@ -92,7 +94,9 @@ export function useFloatingUi({ floatingElRef, floatingPropsRefs }: Props) { const detectMaxHeight = { name: "detectMaxHeight", async fn(state: MiddlewareState) { - if (!floatingPropsRefs.clippable.value) return {} + if (!floatingPropsRefs.clippable.value) { + return {} + } const overflow = await detectOverflow(state, { padding: FloatingOffset }) const verticalOverflow = Math.max(overflow.top, overflow.bottom)