@antscorp/antsomi-ui 1.3.5-beta.153 → 1.3.5-beta.154

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.
@@ -35,7 +35,7 @@ const Settings = (props) => {
35
35
  const isCDP = modeView === 'CDP';
36
36
  const [isInitDataCDPDone, setIsInitDataCDPDone] = useState(false);
37
37
  const contentSourcesDebounce = useDebounce(contentSources, 400);
38
- const { data: listBO, isLoading: isLoadingListBO } = useGetListBO({
38
+ const { data: listBO, isLoading: isLoadingListBO, refetch: refetchListBO, } = useGetListBO({
39
39
  url,
40
40
  }, {
41
41
  token,
@@ -226,7 +226,10 @@ const Settings = (props) => {
226
226
  }
227
227
  }
228
228
  else {
229
- setIsInitDataCDPDone(false);
229
+ if (isCDP) {
230
+ refetchListBO();
231
+ setIsInitDataCDPDone(false);
232
+ }
230
233
  }
231
234
  }, [initValue, contentSourceDispatch, isCDP]);
232
235
  // callback data out
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antscorp/antsomi-ui",
3
- "version": "1.3.5-beta.153",
3
+ "version": "1.3.5-beta.154",
4
4
  "description": "An enterprise-class UI design language and React UI library.",
5
5
  "sideEffects": [
6
6
  "dist/*",