Skip to content

Commit

Permalink
fix(webview): set eval id when update is received
Browse files Browse the repository at this point in the history
  • Loading branch information
typpo committed Mar 17, 2024
1 parent d02e404 commit 2dedc49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/web/nextui/src/app/eval/Eval.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,11 @@ export default function Eval({
setTable(data.results.table);
setConfig(data.config);
fetchRecentFileEvals().then((newRecentEvals) => {
setDefaultEvalId(newRecentEvals[0]?.id);
const newId = newRecentEvals[0]?.id;
if (newId) {
setDefaultEvalId(newId);
setEvalId(newId);
}
});
});

Expand Down

0 comments on commit 2dedc49

Please sign in to comment.