mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Don't hide initial app features if search result was unsuccessful (#136)
This commit is contained in:
parent
c8d8301bf2
commit
b550d15930
@ -247,7 +247,9 @@ export const Messages = React.forwardRef<HTMLDivElement, MessagesProps>(
|
||||
if (category === USER_RESPONSE_CATEGORY) {
|
||||
return false;
|
||||
}
|
||||
if (category === SEARCH_ARBORETUM_CATEGORY) {
|
||||
// Only return on successful searches. Failed searches do not have
|
||||
// a valid result.
|
||||
if (category === SEARCH_ARBORETUM_CATEGORY && parseSearchArboretumResult(messages[i])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user