dbeaver/pro#8339 show array value as array (#4229)

Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
This commit is contained in:
alex
2026-03-24 15:00:59 +01:00
committed by GitHub
co-authored by Evgenia
parent 44077ad27a
commit a44ba89cd9
@@ -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);