mirror of
https://github.com/apache/superset.git
synced 2026-06-04 07:09:22 +00:00
chore(dashboard): Ignore empty json value for overwrite confirm (#22214)
This commit is contained in:
@@ -33,8 +33,10 @@ export default function getOverwriteItems(prev: JsonObject, next: JsonObject) {
|
||||
keyPath,
|
||||
...(keyPath.split('.').find(key => JSON_KEYS.has(key))
|
||||
? {
|
||||
oldValue: JSON.stringify(extractValue(prev, keyPath), null, 2) || '',
|
||||
newValue: JSON.stringify(extractValue(next, keyPath), null, 2) || '',
|
||||
oldValue:
|
||||
JSON.stringify(extractValue(prev, keyPath), null, 2) || '{}',
|
||||
newValue:
|
||||
JSON.stringify(extractValue(next, keyPath), null, 2) || '{}',
|
||||
}
|
||||
: {
|
||||
oldValue: extractValue(prev, keyPath) || '',
|
||||
|
||||
Reference in New Issue
Block a user