Sync from cloud for 2.1.0-rc1

This commit is contained in:
Frikky
2025-06-04 18:37:36 +02:00
parent 90d909e5da
commit 6ad756f8d8
13 changed files with 357 additions and 86 deletions
+9 -2
View File
@@ -213,9 +213,16 @@ const CacheView = memo((props) => {
const cache = {
key: dataValue.key,
value: value,
category: selectedCategory,
category: selectedCategory,
}
if (listCache.length > 0) {
const selectedCache = listCache.find((data) => data.key === dataValue.key);
if (selectedCache?.suborg_distribution?.length > 0) {
cache.suborg_distribution = selectedCache.suborg_distribution;
}
}
setCacheInput([cache]);
fetch(globalUrl + `/api/v1/orgs/${orgId}/set_cache`, {
@@ -805,7 +812,7 @@ const CacheView = memo((props) => {
}}
>
<AddIcon/>
Category (beta)
Category
</Button>
</Tooltip>
}