From 478989e70c4c79fda174419387840f7fbc2e3607 Mon Sep 17 00:00:00 2001 From: "Mitch J." Date: Fri, 8 Nov 2024 03:49:44 -0500 Subject: [PATCH] fix(admin-ui): Fix variant detail quick-jump component (#3189) --- .../product-variant-quick-jump.component.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/admin-ui/src/lib/catalog/src/components/product-variant-quick-jump/product-variant-quick-jump.component.ts b/packages/admin-ui/src/lib/catalog/src/components/product-variant-quick-jump/product-variant-quick-jump.component.ts index a72ea26816..6f2421153c 100644 --- a/packages/admin-ui/src/lib/catalog/src/components/product-variant-quick-jump/product-variant-quick-jump.component.ts +++ b/packages/admin-ui/src/lib/catalog/src/components/product-variant-quick-jump/product-variant-quick-jump.component.ts @@ -31,14 +31,17 @@ export class ProductVariantQuickJumpComponent implements OnInit { @Input() productId: string; selectedVariantId: string | undefined; variants$: Observable['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 = (