From f374bf7f5397c7b05ea283ff992ede7bfd9d145c Mon Sep 17 00:00:00 2001 From: Valentin Perrelle <valentin.perrelle@cea.fr> Date: Thu, 2 May 2024 19:22:32 +0200 Subject: [PATCH] [ivette] fix lint problems --- ivette/src/dome/renderer/frame/toolbars.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ivette/src/dome/renderer/frame/toolbars.tsx b/ivette/src/dome/renderer/frame/toolbars.tsx index 40ee05b1ac9..0604fca5300 100644 --- a/ivette/src/dome/renderer/frame/toolbars.tsx +++ b/ivette/src/dome/renderer/frame/toolbars.tsx @@ -383,7 +383,7 @@ function scrollToRef(r: null | HTMLLabelElement): void { function Suggestions(props: SuggestionsProps): JSX.Element { const { hints, onHint, index, onClose } = props; - const theHints = hints.length > 100 ? hints.slice(0,100) : hints; + const theHints = hints.length > 100 ? hints.slice(0, 100) : hints; const suggestions = theHints.map((h, k) => { const selected = k === index || hints.length === 1; const classSelected = selected && 'dome-xToolBar-searchIndex'; @@ -415,7 +415,9 @@ function Suggestions(props: SuggestionsProps): JSX.Element { onMouseDown={(event) => event.preventDefault()} > {suggestions} - {hints.length > 100 ? <Label>({hints.length - 100} omitted)</Label> : null} + {hints.length > 100 ? + <Label>({hints.length - 100} omitted)</Label> : + null} </div> ); } -- GitLab