@inspirer-dev/crm-dashboard 1.0.51 → 1.0.52
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.
|
@@ -42,7 +42,12 @@ const StepFlowBuilderInner = forwardRef<HTMLDivElement, StepFlowBuilderProps>(
|
|
|
42
42
|
const fetchCampaignData = async () => {
|
|
43
43
|
try {
|
|
44
44
|
const url = `/content-manager/collection-types/${model}/${documentId}`;
|
|
45
|
-
const response = await get(url, {
|
|
45
|
+
const response = await get(url, {
|
|
46
|
+
params: {
|
|
47
|
+
'populate[entrySegment][fields][0]': 'id',
|
|
48
|
+
'populate[entrySegment][fields][1]': 'name',
|
|
49
|
+
},
|
|
50
|
+
});
|
|
46
51
|
|
|
47
52
|
const data = response?.data as { entrySegment?: { id: number; name: string } } | undefined;
|
|
48
53
|
console.log('[StepFlowBuilder] Fetch response data:', JSON.stringify(data, null, 2));
|
|
@@ -3676,7 +3676,12 @@ const StepFlowBuilderInner = React.forwardRef(
|
|
|
3676
3676
|
const fetchCampaignData = async () => {
|
|
3677
3677
|
try {
|
|
3678
3678
|
const url = `/content-manager/collection-types/${model}/${documentId}`;
|
|
3679
|
-
const response = await get(url, {
|
|
3679
|
+
const response = await get(url, {
|
|
3680
|
+
params: {
|
|
3681
|
+
"populate[entrySegment][fields][0]": "id",
|
|
3682
|
+
"populate[entrySegment][fields][1]": "name"
|
|
3683
|
+
}
|
|
3684
|
+
});
|
|
3680
3685
|
const data = response?.data;
|
|
3681
3686
|
console.log("[StepFlowBuilder] Fetch response data:", JSON.stringify(data, null, 2));
|
|
3682
3687
|
console.log("[StepFlowBuilder] entrySegment from API:", data?.entrySegment);
|
|
@@ -3671,7 +3671,12 @@ const StepFlowBuilderInner = forwardRef(
|
|
|
3671
3671
|
const fetchCampaignData = async () => {
|
|
3672
3672
|
try {
|
|
3673
3673
|
const url = `/content-manager/collection-types/${model}/${documentId}`;
|
|
3674
|
-
const response = await get(url, {
|
|
3674
|
+
const response = await get(url, {
|
|
3675
|
+
params: {
|
|
3676
|
+
"populate[entrySegment][fields][0]": "id",
|
|
3677
|
+
"populate[entrySegment][fields][1]": "name"
|
|
3678
|
+
}
|
|
3679
|
+
});
|
|
3675
3680
|
const data = response?.data;
|
|
3676
3681
|
console.log("[StepFlowBuilder] Fetch response data:", JSON.stringify(data, null, 2));
|
|
3677
3682
|
console.log("[StepFlowBuilder] entrySegment from API:", data?.entrySegment);
|
package/dist/admin/index.js
CHANGED
package/dist/admin/index.mjs
CHANGED