Skip to content

Commit 9321804

Browse files
committed
fix(org): keep a recent search with a line break on one line
1 parent 79de765 commit 9321804

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • apps/sim/platform/embedded/app/(shell)/search/_components/search-surface

‎apps/sim/platform/embedded/app/(shell)/search/_components/search-surface/search-history.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function SearchHistory({ userId, onSearch, children }: SearchHistoryProps
8080
{queries.map(({ query }) => (
8181
<ControlRow
8282
key={query}
83-
label={query}
83+
label={query.replace(/\s+/g, ' ').trim()}
8484
icon='I046'
8585
render={<button type='button' onClick={() => onSearch(query)} />}
8686
/>

0 commit comments

Comments
 (0)