From dff4a95acc55574b4872b0e4e39555cce0b2fd60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Thu, 9 Mar 2023 17:03:50 +0100 Subject: [PATCH] fix: data detail local favorite fallback causing duplicate nested favorite view --- src/app/modules/data/detail/data-detail.component.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/modules/data/detail/data-detail.component.ts b/src/app/modules/data/detail/data-detail.component.ts index 2860dc31..bded358d 100644 --- a/src/app/modules/data/detail/data-detail.component.ts +++ b/src/app/modules/data/detail/data-detail.component.ts @@ -1,5 +1,5 @@ /* - * Copyright (C) 2022 StApps + * Copyright (C) 2023 StApps * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the Free * Software Foundation, version 3. @@ -14,7 +14,7 @@ */ import {Component, ContentChild, EventEmitter, Input, Output, TemplateRef} from '@angular/core'; import {ActivatedRoute} from '@angular/router'; -import {ViewWillEnter, ModalController} from '@ionic/angular'; +import {ModalController, ViewWillEnter} from '@ionic/angular'; import {LangChangeEvent, TranslateService} from '@ngx-translate/core'; import {SCLanguageCode, SCSaveableThing, SCThings, SCUuid} from '@openstapps/core'; import {DataProvider, DataScope} from '../data.provider'; @@ -151,7 +151,7 @@ export class DataDetailComponent implements ViewWillEnter { .pipe(take(1)) .subscribe(item => { if (typeof item !== 'undefined') { - this.item = item; + this.item = item.data; } }); }