...
 
Commits (2)
......@@ -52,12 +52,9 @@ export class NSFWSelectorComponent {
@Input('selected') set selected(selected: Array<number>) {
this.serviceRef = 'editing';
if (!this.selected && this.service.reasons) {
for (let i in this.service.reasons) {
this.service.reasons[i].selected =
selected.indexOf(this.service.reasons[i].value) > -1;
}
for (let i in this.service.reasons) {
this.service.reasons[i].selected =
selected.indexOf(this.service.reasons[i].value) > -1;
}
}
......
......@@ -72,7 +72,7 @@ export class MediaEditComponent {
.get('api/v1/entities/entity/' + this.guid, { children: false })
.then((response: any) => {
this.inProgress = false;
console.log(response);
if (response.entity) {
if (!response.entity.description) response.entity.description = '';
......