Sync from cloud for 2.1.0-rc1
This commit is contained in:
@@ -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>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user