Skip to content

Commit

Permalink
fix(wren-ui): await thread recommendation question generation (#934)
Browse files Browse the repository at this point in the history
  • Loading branch information
fredalai authored Nov 20, 2024
1 parent 220b0ca commit e5ab233
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion wren-ui/src/pages/home/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function HomeThread() {
const response = await createThreadResponse({
variables: { threadId: thread.id, data: payload },
});
generateThreadRecommendationQuestions({
await generateThreadRecommendationQuestions({
variables: { threadId: thread.id },
});
setShowRecommendedQuestions(false);
Expand Down
2 changes: 1 addition & 1 deletion wren-ui/src/pages/home/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default function Home() {
try {
askPrompt.onStopPolling();
const response = await createThread({ variables: { data: payload } });
generateThreadRecommendationQuestions({
await generateThreadRecommendationQuestions({
variables: { threadId: response.data.createThread.id },
});
router.push(Path.Home + `/${response.data.createThread.id}`);
Expand Down

0 comments on commit e5ab233

Please sign in to comment.