Skip to content

Commit 6e7cc51

Browse files
committed
fix(js-api-client): PriceList now available in the hydrater
1 parent 93f804a commit 6e7cc51

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@crystallize/js-api-client",
33
"license": "MIT",
4-
"version": "1.9.0",
4+
"version": "1.9.1",
55
"author": "Crystallize <[email protected]> (https://crystallize.com)",
66
"contributors": [
77
"Sébastien Morel <[email protected]>"

src/core/hydrate.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,15 @@ function byPaths(client: ClientInterface, options?: ProductHydraterOptions): Pro
6666
? {
6767
priceList: {
6868
__args: { identifier: options.priceList },
69+
...priceListBlock,
6970
},
7071
}
7172
: {}),
7273
...(options?.marketIdentifiers
7374
? {
7475
priceFor: {
7576
__args: { marketIdentifiers: options.marketIdentifiers },
77+
...priceListBlock,
7678
},
7779
}
7880
: {}),

0 commit comments

Comments
 (0)