Skip to content

Commit

Permalink
clean up getInitialExampleResponsesMap
Browse files Browse the repository at this point in the history
  • Loading branch information
RogerHYang committed Nov 13, 2024
1 parent cbcc770 commit 6e78604
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/pages/playground/PlaygroundDatasetExamplesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -539,9 +539,9 @@ export function PlaygroundDatasetExamplesTable({
const { instances, streaming, setExperimentId } =
playgroundStore.getState();
setExperimentId(null);
setExampleResponsesMap(getInitialExampleResponsesMap(instances));
if (streaming) {
const subscriptions: Disposable[] = [];
setExampleResponsesMap(getInitialExampleResponsesMap(instances));
for (const instance of instances) {
const { activeRunId } = instance;
if (activeRunId === null) {
Expand Down Expand Up @@ -581,7 +581,6 @@ export function PlaygroundDatasetExamplesTable({
}
};
} else {
setExampleResponsesMap(getInitialExampleResponsesMap(instances));
for (const instance of instances) {
const { activeRunId } = instance;
if (activeRunId === null) {
Expand Down

0 comments on commit 6e78604

Please sign in to comment.