Skip to content

Commit

Permalink
fix: branding data merge
Browse files Browse the repository at this point in the history
Signed-off-by: Oleksii Orel <[email protected]>
  • Loading branch information
olexii4 committed Jan 21, 2025
1 parent dbf085e commit b050f7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/dashboard-frontend/src/store/Branding/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

import common from '@eclipse-che/common';
import { createAction } from '@reduxjs/toolkit';
import cloneDeep from 'lodash/cloneDeep';
import merge from 'lodash/merge';

import { fetchApiInfo, fetchBranding } from '@/services/assets/branding';
Expand Down Expand Up @@ -71,7 +72,7 @@ export const actionCreators = {
};

export function getBrandingData(receivedBranding?: { [key: string]: any }): BrandingData {
let branding: BrandingData = Object.assign({}, BRANDING_DEFAULT);
let branding: BrandingData = cloneDeep(BRANDING_DEFAULT);

if (receivedBranding && Object.keys(receivedBranding).length > 0) {
branding = merge(branding, receivedBranding);
Expand Down

0 comments on commit b050f7f

Please sign in to comment.