Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Jun 16, 2024
1 parent c3ca0ef commit 9e0234b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/dashboard/src/actions/ai/storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export async function getLatestChat() {
}
);

return RedisClient.hgetall(chat.at(0));
if (chat.at(0)) {
return RedisClient.hgetall(chat.at(0));
}
} catch (error) {
return null;
}
Expand Down

0 comments on commit 9e0234b

Please sign in to comment.