@topconsultnpm/sdkui-react 6.22.0-dev3.15 → 6.22.0-dev3.16
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.
|
@@ -49,6 +49,11 @@ const TMTreeSelector = ({ layoutMode = LayoutModes.Update, isVisible, onSelected
|
|
|
49
49
|
const loadTreesAsync = useCallback(async (forceRefresh = false) => {
|
|
50
50
|
const isSearchContext = layoutMode == LayoutModes.Update;
|
|
51
51
|
if (forceRefresh) {
|
|
52
|
+
// Gli alberi arrivano dal server filtrati sui tipi documento della sessione: senza rileggerli
|
|
53
|
+
// prima (RetrieveAll con refreshCache rigenera anche la cache lato server) un tipo documento
|
|
54
|
+
// appena creato da Designer non comparirebbe tra gli elementi dell'albero
|
|
55
|
+
DcmtTypeListCacheService.RemoveAllWithoutMetadata();
|
|
56
|
+
await DcmtTypeListCacheService.GetAllWithoutMetadataAsync();
|
|
52
57
|
if (isSearchContext)
|
|
53
58
|
TreeCacheService.RemoveAllSearch();
|
|
54
59
|
else
|