Skip to content

Commit

Permalink
fix deploy error
Browse files Browse the repository at this point in the history
  • Loading branch information
bhapas committed Sep 26, 2024
1 parent bcdb0d8 commit e8c3282
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ export const reducer = (state: State, action: Action): State => {
case 'SET_IS_GENERATING':
return { ...state, isGenerating: action.payload };
case 'SET_GENERATED_RESULT':
return { ...state, result: action.payload };
return {
...state,
// keep original result as the samplesFormat is not always included in the payload
result: state.result ? { ...state.result, ...action.payload } : action.payload,
};
default:
return state;
}
Expand Down

0 comments on commit e8c3282

Please sign in to comment.