Skip to content

Commit

Permalink
fix: adding git configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Kurinnyi <[email protected]>
  • Loading branch information
akurinnoy committed Nov 12, 2024
1 parent fc89379 commit 9588535
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/dashboard-frontend/src/store/GitConfig/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export const actionCreators = {
const state = getState();
const namespace = selectDefaultNamespace(state).name;
const { gitConfig } = state;
const gitconfig = Object.assign(gitConfig.config || {}, {
const gitconfig = Object.assign({}, gitConfig.config || {}, {
gitconfig: changedGitConfig,
} as api.IGitConfig);

Expand Down
7 changes: 7 additions & 0 deletions packages/dashboard-frontend/src/store/__mocks__/mockStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,13 @@ export class MockStoreBuilder {

public build() {
return configureStore({
middleware: getDefaultMiddleware => {
const middleware = getDefaultMiddleware({
serializableCheck: true,
immutableCheck: true,
});
return middleware;
},
reducer: rootReducer,
preloadedState: this.state,
});
Expand Down

0 comments on commit 9588535

Please sign in to comment.