@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, { params: { populate: 'entrySegment' } });
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, { params: { populate: "entrySegment" } });
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, { params: { populate: "entrySegment" } });
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);
@@ -131,7 +131,7 @@ const index = {
131
131
  components: {
132
132
  Input: async () => Promise.resolve().then(() => require(
133
133
  /* webpackChunkName: "crm-step-flow-builder" */
134
- "../_chunks/index-CwwnTFv3.js"
134
+ "../_chunks/index--Qa1Bd7y.js"
135
135
  ))
136
136
  },
137
137
  options: {
@@ -130,7 +130,7 @@ const index = {
130
130
  components: {
131
131
  Input: async () => import(
132
132
  /* webpackChunkName: "crm-step-flow-builder" */
133
- "../_chunks/index-B_HwB9Vy.mjs"
133
+ "../_chunks/index-5WkcveGM.mjs"
134
134
  )
135
135
  },
136
136
  options: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inspirer-dev/crm-dashboard",
3
- "version": "1.0.51",
3
+ "version": "1.0.52",
4
4
  "description": "CRM Dashboard and Tools",
5
5
  "strapi": {
6
6
  "name": "crm-dashboard",