Skip to content

Commit

Permalink
fix(llm): trim search query
Browse files Browse the repository at this point in the history
  • Loading branch information
jiyuzhuang committed Apr 9, 2024
1 parent acf3dc3 commit 47660b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-elephants-jump.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"live-mobile": patch
---

Fix search query no trim bug
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,7 @@ const LabelContainer = styled(Flex).attrs({
paddingHorizontal: 12,
})``;

export default memo(function AppRow({
app,
state,
dispatch,
setStorageWarning,
optimisticState,
}: Props) {
export default memo(function ({ app, state, dispatch, setStorageWarning, optimisticState }: Props) {
const { name: appName, version: appVersion, displayName, authorName } = app;
const { installed, deviceInfo, deviceModel } = state;
const canBeInstalled = useMemo(() => manager.canHandleInstall(app), [app]);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ const AppsScreen = ({
keys: ["name"],
shouldSort: false,
}}
value={query}
value={query.trim()}
items={enabledApps}
render={renderList}
renderEmptySearch={renderList}
Expand Down

0 comments on commit 47660b9

Please sign in to comment.