analytica-frontend-lib 1.4.86 → 1.4.87

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.
@@ -5783,9 +5783,8 @@ var useActivityFiltersDataImpl = (apiClient, options) => {
5783
5783
  [apiClient]
5784
5784
  );
5785
5785
  const loadSubtopics = (0, import_react15.useCallback)(
5786
- async (topicIds, options2 = {}) => {
5787
- const { forceApi = false } = options2;
5788
- if (topicIds.length === 0 && !forceApi) {
5786
+ async (topicIds) => {
5787
+ if (topicIds.length === 0) {
5789
5788
  setKnowledgeStructure((prev) => ({
5790
5789
  ...prev,
5791
5790
  subtopics: [],
@@ -5920,9 +5919,7 @@ var useActivityFiltersDataImpl = (apiClient, options) => {
5920
5919
  (id) => !currentSelectedTopicIds.includes(id)
5921
5920
  );
5922
5921
  if (topicIdsChanged) {
5923
- loadSubtopics(selectedTopicIds, {
5924
- forceApi: selectedTopicIds.length === 0
5925
- });
5922
+ loadSubtopics(selectedTopicIds);
5926
5923
  }
5927
5924
  const subtopicIdsChanged = isFirstChange || currentSelectedSubtopicIds.length !== selectedSubtopicIds.length || currentSelectedSubtopicIds.some(
5928
5925
  (id) => !selectedSubtopicIds.includes(id)