fix(tech): Replaced replaceAll methods with replace to avoid errors in some older browsers.
Squashed commit of the following: commit 559c099720500a5fa55d92456cc555ab5d980e1f Author: Erik Tiekstra <erik.tiekstra@arbetsformedlingen.se> Date: Thu Oct 14 13:14:16 2021 +0200 Replaced replaceAll with replace method with regex to avoid older browser-problems
This commit is contained in:
@@ -63,9 +63,6 @@ export class LayoutComponent extends UnsubscribeDirective {
|
||||
}
|
||||
|
||||
get breadcrumbsItems(): NavigationBreadcrumbsItem[] {
|
||||
return this._breadcrumbsItems$.getValue().map(breadcrumb => ({
|
||||
...breadcrumb,
|
||||
text: breadcrumb.text.replaceAll('-', ' '),
|
||||
}));
|
||||
return this._breadcrumbsItems$.getValue();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user