Skip to content

Commit

Permalink
fix(foxy-store-shipping-method-form): fix additional service selection
Browse files Browse the repository at this point in the history
  • Loading branch information
pheekus committed Oct 23, 2024
1 parent 7186121 commit 5d8e328
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -718,5 +718,8 @@ describe('StoreShippingMethodForm', () => {
'links-href',
'https://demo.api/hapi/store_shipping_services?shipping_method_id=0'
);

await waitUntil(() => !!control.ownUri, undefined, { timeout: 5000 });
expect(control.ownUri).to.equal('https://demo.api/hapi/shipping_methods/0');
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ export class StoreShippingMethodForm extends Base<Data> {
foreign-key-for-uri="shipping_service_uri"
foreign-key-for-id="shipping_service_id"
own-key-for-uri="shipping_method_uri"
own-uri=${ifDefined(this.data?._links.self.href)}
own-uri=${ifDefined(shippingMethod?._links.self.href)}
embed-key="fx:store_shipping_services"
options-href=${ifDefined(shippingMethod?._links['fx:shipping_services'].href)}
links-href=${ifDefined(this.data?._links['fx:store_shipping_services'].href)}
Expand Down

0 comments on commit 5d8e328

Please sign in to comment.