Skip to content

Commit

Permalink
style: fix formatting in Autocomplete.tsx
Browse files Browse the repository at this point in the history
Co-Authored-By: sam@knock.app <sam@knock.app>
  • Loading branch information
devin-ai-integration[bot] and samseely committed Feb 27, 2025
1 parent 07044c9 commit d47e8c3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions components/Autocomplete.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ const AiLauncher = ({ searchTerm }) => {
baseSettings,
aiChatSettings,
modalSettings,
searchSettings: {
...searchSettings,
searchSettings: {
...searchSettings,
prefilledQuery: searchTerm,
},
};
Expand Down Expand Up @@ -161,7 +161,9 @@ const Autocomplete = () => {
transformResponse({ hits }) {
// Add the "Ask AI" item at the top of the results
// Filter out any empty items to prevent empty entries in the dropdown
const filteredHits = hits[0].filter(hit => hit && hit.objectID);
const filteredHits = hits[0].filter(
(hit) => hit && hit.objectID,
);
return [askAiItem, ...filteredHits];
},
});
Expand Down

0 comments on commit d47e8c3

Please sign in to comment.