impact-chatbot 2.3.74 → 2.3.75

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/index.esm.js CHANGED
@@ -212,10 +212,10 @@ const triggerRefresh = async (baseUrl) => {
212
212
  return null;
213
213
  }
214
214
  };
215
- const fetchChatbotFilterConfig = async (dimension = "product") => {
215
+ const fetchChatbotFilterConfig = async () => {
216
216
  try {
217
217
  return axiosInstance({
218
- url: `core/filter/generic-schema-mapping?dimension=${dimension}&screen_name=Chatbot`,
218
+ url: `core/filter/generic-schema-mapping?screen_name=Chatbot`,
219
219
  method: "GET",
220
220
  });
221
221
  }
@@ -14845,14 +14845,11 @@ const SmartBot = (props) => {
14845
14845
  },
14846
14846
  ]);
14847
14847
  }
14848
- const [response, responseStore] = await Promise.all([
14849
- fetchChatbotFilterConfig("product"),
14850
- fetchChatbotFilterConfig("store"),
14851
- ]);
14848
+ const response = await fetchChatbotFilterConfig();
14849
+ const responseData = response?.data?.data || {};
14852
14850
  const combinedOptions = [
14853
- ...(response?.data?.data || []),
14854
- ...(responseStore?.data?.data || []),
14855
- ...(chatbotFilterCustomConfig?.data || []), // Add custom filter config for testing
14851
+ ...Object.values(responseData).flat(),
14852
+ ...(chatbotFilterCustomConfig?.data || []) // Add custom filter config for testing
14856
14853
  ];
14857
14854
  // Create hierarchy key-value pairs object
14858
14855
  const hierarchyKeyValuePairs = {};