fix(app/environment): console errors related to usage of React components [EE-3760] (#7310)

pull/6689/head^2
LP B 2 years ago committed by GitHub
parent 728e885b9d
commit b059641c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,4 +1,4 @@
<page-header title="'Environment details'" breadcrumbs="[{label:'Environments', link:'portainer.endpoints'}, endpoint.Name]" reload="true"> </page-header> <page-header ng-if="endpoint" title="'Environment details'" breadcrumbs="[{label:'Environments', link:'portainer.endpoints'}, endpoint.Name]" reload="true"> </page-header>
<div class="row"> <div class="row">
<div ng-if="state.edgeEndpoint"> <div ng-if="state.edgeEndpoint">
@ -224,7 +224,7 @@
<!-- !open-amt info --> <!-- !open-amt info -->
<!-- gpus info --> <!-- gpus info -->
<div class="col-sm-12 form-section-title">Hardware acceleration</div> <div class="col-sm-12 form-section-title">Hardware acceleration</div>
<gpus-list value="endpoint.Gpus || []" on-change="(onGpusChange)"></gpus-list> <gpus-list ng-if="endpoint && endpoint.Gpus" value="endpoint.Gpus" on-change="(onGpusChange)"></gpus-list>
<!-- gpus info --> <!-- gpus info -->
<div class="form-group"> <div class="form-group">
<div class="col-sm-12"> <div class="col-sm-12">

@ -27,6 +27,10 @@ export function Breadcrumbs({ breadcrumbs }: Props) {
} }
function renderCrumb(crumb: Crumb | string) { function renderCrumb(crumb: Crumb | string) {
if (!crumb) {
return '';
}
if (typeof crumb === 'string') { if (typeof crumb === 'string') {
return crumb; return crumb;
} }

Loading…
Cancel
Save