mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-01-22 10:55:34 +00:00
fix: auto select starter template bugfix (#1148)
This commit is contained in:
parent
d62e211d09
commit
f29380e147
@ -274,7 +274,7 @@ export const ChatImpl = memo(
|
||||
|
||||
runAnimation();
|
||||
|
||||
if (!chatStarted && messageInput && autoSelectTemplate) {
|
||||
if (!chatStarted && _input && autoSelectTemplate) {
|
||||
setFakeLoading(true);
|
||||
setMessages([
|
||||
{
|
||||
@ -296,7 +296,7 @@ export const ChatImpl = memo(
|
||||
// reload();
|
||||
|
||||
const { template, title } = await selectStarterTemplate({
|
||||
message: messageInput,
|
||||
message: _input,
|
||||
model,
|
||||
provider,
|
||||
});
|
||||
@ -319,7 +319,7 @@ export const ChatImpl = memo(
|
||||
{
|
||||
id: `${new Date().getTime()}`,
|
||||
role: 'user',
|
||||
content: messageInput,
|
||||
content: _input,
|
||||
|
||||
// annotations: ['hidden'],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user