mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
dbeaver/pro#8339 show array value as array (#4229)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
@@ -24,7 +24,7 @@ export function getObjectPropertyDisplayValue(property: IObjectPropertyInfo) {
|
||||
return String(getValue(property.value, controlType));
|
||||
}
|
||||
|
||||
function getValue(value: any, controlType: ObjectPropertyType) {
|
||||
function getValue(value: any, controlType: ObjectPropertyType): any {
|
||||
const checkbox = controlType === 'checkbox';
|
||||
|
||||
if (value === null || value === undefined) {
|
||||
@@ -40,7 +40,7 @@ function getValue(value: any, controlType: ObjectPropertyType) {
|
||||
}
|
||||
|
||||
if (Array.isArray(value)) {
|
||||
return value.join(', ');
|
||||
return `[${value.map(v => getValue(v, controlType)).join(', ')}]`;
|
||||
}
|
||||
|
||||
return value.value || value.displayName || JSON.stringify(value);
|
||||
|
||||
Reference in New Issue
Block a user