mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 01:23:21 +08:00
dbeaver/pro#7769 fix properties mapping for enums (#4052)
* dbeaver/pro#7769 fix properties mapping for enums * dbeaver/pro#7769 fix annotations * dbeaver/pro#7769 use custom extended interface * dbeaver/pro#7769 check explicit value * dbeaver/pro#7769 avoid declaring extra variable * dbeaver/pro#7769 always use isNotNullDefined in terms of backend data --------- Co-authored-by: naumov <iamemptyhuh@gmail.com> Co-authored-by: mr-anton-t <42037741+mr-anton-t@users.noreply.github.com> Co-authored-by: Evgenia <139753579+EvgeniaBzzz@users.noreply.github.com> Co-authored-by: Ainur <59531286+yagudin10@users.noreply.github.com>
This commit is contained in:
co-authored by
naumov
mr-anton-t
Evgenia
Ainur
parent
d2d3ada58a
commit
0bfdcf0886
@@ -9,7 +9,7 @@ import { useCallback, useState } from 'react';
|
||||
|
||||
import { EventTableItemSelectionFlag, TableColumnValue, TableItem } from '@cloudbeaver/core-blocks';
|
||||
import { EventContext } from '@cloudbeaver/core-events';
|
||||
import type { ObjectPropertyInfo } from '@cloudbeaver/core-sdk';
|
||||
import type { IObjectPropertyInfo } from '@cloudbeaver/core-sdk';
|
||||
|
||||
import type { IExecutionPlanNode } from './ExecutionPlanTreeContext.js';
|
||||
import { Expand } from './Expand.js';
|
||||
@@ -17,7 +17,7 @@ import { getPropertyValue } from './getPropertyValue.js';
|
||||
import classes from './NestedNode.module.css';
|
||||
|
||||
interface Props {
|
||||
columns: ObjectPropertyInfo[];
|
||||
columns: IObjectPropertyInfo[];
|
||||
node: IExecutionPlanNode;
|
||||
depth: number;
|
||||
className?: string;
|
||||
|
||||
+2
-2
@@ -8,14 +8,14 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
import { TableColumnValue, TableItem } from '@cloudbeaver/core-blocks';
|
||||
import type { ObjectPropertyInfo } from '@cloudbeaver/core-sdk';
|
||||
import type { IObjectPropertyInfo } from '@cloudbeaver/core-sdk';
|
||||
|
||||
import { Expand } from '../Expand.js';
|
||||
import { getPropertyValue } from '../getPropertyValue.js';
|
||||
import classes from './PropertiesPanelItemsGroup.module.css';
|
||||
|
||||
interface Props {
|
||||
properties: ObjectPropertyInfo[];
|
||||
properties: IObjectPropertyInfo[];
|
||||
name: string;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -5,9 +5,9 @@
|
||||
* Licensed under the Apache License, Version 2.0.
|
||||
* you may not use this file except in compliance with the License.
|
||||
*/
|
||||
import type { ObjectPropertyInfo } from '@cloudbeaver/core-sdk';
|
||||
import type { IObjectPropertyInfo } from '@cloudbeaver/core-sdk';
|
||||
|
||||
export function getPropertyValue(property: ObjectPropertyInfo): string {
|
||||
export function getPropertyValue(property: IObjectPropertyInfo): string {
|
||||
const value = property.value;
|
||||
|
||||
if (!value) {
|
||||
|
||||
Reference in New Issue
Block a user