@layerfi/components 0.1.21 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/index.js +8 -4
- package/dist/esm/index.js.map +2 -2
- package/dist/index.js +8 -4
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9476,8 +9476,10 @@ var LayerProvider = ({
|
|
|
9476
9476
|
}
|
|
9477
9477
|
}, [businessAccessToken, auth?.access_token]);
|
|
9478
9478
|
(0, import_swr9.default)(
|
|
9479
|
-
businessId && auth?.access_token && `categories-${businessId}`,
|
|
9480
|
-
Layer.getCategories(apiUrl, auth?.access_token, {
|
|
9479
|
+
businessId && state.auth?.access_token && `categories-${businessId}`,
|
|
9480
|
+
Layer.getCategories(apiUrl, state.auth?.access_token, {
|
|
9481
|
+
params: { businessId }
|
|
9482
|
+
}),
|
|
9481
9483
|
{
|
|
9482
9484
|
...defaultSWRConfig,
|
|
9483
9485
|
onSuccess: (response) => {
|
|
@@ -9491,8 +9493,10 @@ var LayerProvider = ({
|
|
|
9491
9493
|
}
|
|
9492
9494
|
);
|
|
9493
9495
|
(0, import_swr9.default)(
|
|
9494
|
-
businessId && auth?.access_token && `business-${businessId}`,
|
|
9495
|
-
Layer.getBusiness(apiUrl, auth?.access_token, {
|
|
9496
|
+
businessId && state?.auth?.access_token && `business-${businessId}`,
|
|
9497
|
+
Layer.getBusiness(apiUrl, state?.auth?.access_token, {
|
|
9498
|
+
params: { businessId }
|
|
9499
|
+
}),
|
|
9496
9500
|
{
|
|
9497
9501
|
...defaultSWRConfig,
|
|
9498
9502
|
onSuccess: (response) => {
|