fix: data detail local favorite fallback causing duplicate nested favorite view

This commit is contained in:
2023-03-09 17:03:50 +01:00
committed by Rainer Killinger
parent 95f2da2def
commit dff4a95acc

View File

@@ -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;
}
});
}