@fctc/widget-logic 6.1.5 → 6.1.7
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/hooks.js +1 -4
- package/dist/hooks.mjs +1 -4
- package/dist/index.js +1 -4
- package/dist/index.mjs +1 -4
- package/package.json +1 -1
package/dist/hooks.js
CHANGED
|
@@ -147,7 +147,6 @@ var useCallAction = () => {
|
|
|
147
147
|
const [actionData, setActionData] = (0, import_react.useState)(
|
|
148
148
|
void 0
|
|
149
149
|
);
|
|
150
|
-
console.log("env?.context", env?.context);
|
|
151
150
|
const callAction = (0, import_react.useCallback)(
|
|
152
151
|
async ({
|
|
153
152
|
aid,
|
|
@@ -584,10 +583,8 @@ var useCompany = ({ service }) => {
|
|
|
584
583
|
}
|
|
585
584
|
}, [current_company_id]);
|
|
586
585
|
(0, import_react7.useEffect)(() => {
|
|
587
|
-
console.log("wesapCompany.data", wesapCompany.data);
|
|
588
586
|
if (wesapCompany.data) {
|
|
589
|
-
const allowedCompanies =
|
|
590
|
-
console.log("allowedCompanies", allowedCompanies);
|
|
587
|
+
const allowedCompanies = wesapCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
|
|
591
588
|
if (allowedCompanies.length) {
|
|
592
589
|
setAllowCompanies(allowedCompanies);
|
|
593
590
|
}
|
package/dist/hooks.mjs
CHANGED
|
@@ -127,7 +127,6 @@ var useCallAction = () => {
|
|
|
127
127
|
const [actionData, setActionData] = useState(
|
|
128
128
|
void 0
|
|
129
129
|
);
|
|
130
|
-
console.log("env?.context", env?.context);
|
|
131
130
|
const callAction = useCallback(
|
|
132
131
|
async ({
|
|
133
132
|
aid,
|
|
@@ -565,10 +564,8 @@ var useCompany = ({ service }) => {
|
|
|
565
564
|
}
|
|
566
565
|
}, [current_company_id]);
|
|
567
566
|
useEffect4(() => {
|
|
568
|
-
console.log("wesapCompany.data", wesapCompany.data);
|
|
569
567
|
if (wesapCompany.data) {
|
|
570
|
-
const allowedCompanies =
|
|
571
|
-
console.log("allowedCompanies", allowedCompanies);
|
|
568
|
+
const allowedCompanies = wesapCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
|
|
572
569
|
if (allowedCompanies.length) {
|
|
573
570
|
setAllowCompanies(allowedCompanies);
|
|
574
571
|
}
|
package/dist/index.js
CHANGED
|
@@ -4198,7 +4198,6 @@ var useCallAction = () => {
|
|
|
4198
4198
|
const [actionData, setActionData] = (0, import_react.useState)(
|
|
4199
4199
|
void 0
|
|
4200
4200
|
);
|
|
4201
|
-
console.log("env?.context", env?.context);
|
|
4202
4201
|
const callAction = (0, import_react.useCallback)(
|
|
4203
4202
|
async ({
|
|
4204
4203
|
aid,
|
|
@@ -4658,10 +4657,8 @@ var useCompany = ({ service }) => {
|
|
|
4658
4657
|
}
|
|
4659
4658
|
}, [current_company_id]);
|
|
4660
4659
|
(0, import_react7.useEffect)(() => {
|
|
4661
|
-
console.log("wesapCompany.data", wesapCompany.data);
|
|
4662
4660
|
if (wesapCompany.data) {
|
|
4663
|
-
const allowedCompanies =
|
|
4664
|
-
console.log("allowedCompanies", allowedCompanies);
|
|
4661
|
+
const allowedCompanies = wesapCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
|
|
4665
4662
|
if (allowedCompanies.length) {
|
|
4666
4663
|
setAllowCompanies(allowedCompanies);
|
|
4667
4664
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -4287,7 +4287,6 @@ var useCallAction = () => {
|
|
|
4287
4287
|
const [actionData, setActionData] = useState(
|
|
4288
4288
|
void 0
|
|
4289
4289
|
);
|
|
4290
|
-
console.log("env?.context", env?.context);
|
|
4291
4290
|
const callAction = useCallback(
|
|
4292
4291
|
async ({
|
|
4293
4292
|
aid,
|
|
@@ -4748,10 +4747,8 @@ var useCompany = ({ service }) => {
|
|
|
4748
4747
|
}
|
|
4749
4748
|
}, [current_company_id]);
|
|
4750
4749
|
useEffect4(() => {
|
|
4751
|
-
console.log("wesapCompany.data", wesapCompany.data);
|
|
4752
4750
|
if (wesapCompany.data) {
|
|
4753
|
-
const allowedCompanies =
|
|
4754
|
-
console.log("allowedCompanies", allowedCompanies);
|
|
4751
|
+
const allowedCompanies = wesapCompany.data?.allowed_companies?.map((c) => c[0]) ?? [];
|
|
4755
4752
|
if (allowedCompanies.length) {
|
|
4756
4753
|
setAllowCompanies(allowedCompanies);
|
|
4757
4754
|
}
|