Skip to content

Commit a44ba89

Browse files
dbeaver/pro#8339 show array value as array (#4229)
Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com>
1 parent 44077ad commit a44ba89

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

webapp/packages/core-sdk/src/getObjectPropertyValue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function getObjectPropertyDisplayValue(property: IObjectPropertyInfo) {
2424
return String(getValue(property.value, controlType));
2525
}
2626

27-
function getValue(value: any, controlType: ObjectPropertyType) {
27+
function getValue(value: any, controlType: ObjectPropertyType): any {
2828
const checkbox = controlType === 'checkbox';
2929

3030
if (value === null || value === undefined) {
@@ -40,7 +40,7 @@ function getValue(value: any, controlType: ObjectPropertyType) {
4040
}
4141

4242
if (Array.isArray(value)) {
43-
return value.join(', ');
43+
return `[${value.map(v => getValue(v, controlType)).join(', ')}]`;
4444
}
4545

4646
return value.value || value.displayName || JSON.stringify(value);

0 commit comments

Comments
 (0)