Skip to content

Commit

Permalink
fix(admin-ui): Fix variant detail quick-jump component (#3189)
Browse files Browse the repository at this point in the history
  • Loading branch information
toBeOfUse authored Nov 8, 2024
1 parent 961297d commit 478989e
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,17 @@ export class ProductVariantQuickJumpComponent implements OnInit {
@Input() productId: string;
selectedVariantId: string | undefined;
variants$: Observable<NonNullable<GetProductVariantsQuickJumpQuery['product']>['variants']>;
constructor(private dataService: DataService, private router: Router) {}
constructor(
private dataService: DataService,
private router: Router,
) {}

ngOnInit() {
this.variants$ = this.dataService
.query(GetProductVariantsQuickJumpDocument, {
id: this.productId,
})
.mapSingle(data => data.product?.variants ?? []);
.mapStream(data => data.product?.variants ?? []);
}

searchFn = (
Expand Down

0 comments on commit 478989e

Please # to comment.