Skip to content

Commit

Permalink
Handle canceling the service select dialog for ratings predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
floogulinc committed Aug 18, 2023
1 parent 864e9e6 commit f92fd4b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/tag-input/tag-input.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,9 @@ export class TagInputComponent implements OnInit, ControlValueAccessor {
serviceFilter: services => services.filter(isRatingService),
})
const service = await firstValueFrom(serviceDialog.afterClosed());
if(!service) {
return null;
}
const dialogRef = this.dialog.open<SystemPredicateRatingsDialogComponent, {service: HydrusService}, string>(
SystemPredicateRatingsDialogComponent,
{
Expand Down

0 comments on commit f92fd4b

Please sign in to comment.