Skip to content

Commit c8062f1

Browse files
authored
fix: branding data merge (#1297)
* fix: branding data merge Signed-off-by: Oleksii Orel <oorel@redhat.com>
1 parent df595a1 commit c8062f1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/dashboard-frontend/src/services/bootstrap/branding.constant.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export type BrandingDocs = {
3333
faq?: string;
3434
storageTypes: string;
3535
webSocketTroubleshooting: string;
36-
startWorkspaceFromGit: string;
3736
};
3837

3938
export type BrandingConfiguration = {
@@ -84,8 +83,6 @@ export const BRANDING_DEFAULT: BrandingData = {
8483
'https://www.eclipse.org/che/docs/stable/end-user-guide/url-parameter-for-the-workspace-storage/',
8584
webSocketTroubleshooting:
8685
'https://www.eclipse.org/che/docs/stable/end-user-guide/troubleshooting-network-problems/',
87-
startWorkspaceFromGit:
88-
'https://eclipse.dev/che/docs/stable/end-user-guide/starting-a-workspace-from-a-git-repository-url/',
8986
},
9087
configuration: {},
9188
};

packages/dashboard-frontend/src/store/Branding/actions.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212

1313
import common from '@eclipse-che/common';
1414
import { createAction } from '@reduxjs/toolkit';
15+
import cloneDeep from 'lodash/cloneDeep';
1516
import merge from 'lodash/merge';
1617

1718
import { fetchApiInfo, fetchBranding } from '@/services/assets/branding';
@@ -71,7 +72,7 @@ export const actionCreators = {
7172
};
7273

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

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

0 commit comments

Comments
 (0)