console: fix handling inconsistent objects (close #5072) (#5073)

This commit is contained in:
Aleksandra Sikora 2020-06-12 11:11:54 +02:00 committed by GitHub
parent 4c9362c91b
commit f73b847ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,12 +42,10 @@ const MetadataStatus = ({ dispatch, metadata }) => {
ico.definition.table
)}"`;
} else if (ico.type === 'remote_relationship') {
name = ico.definition.configuration.name;
name = ico.definition.name;
definition = `relationship between table "${getTableNameFromDef(
ico.definition.table
)}" and remote schema "${
ico.definition.configuration.remote_schema
}"`;
)}" and remote schema "${ico.definition.remote_schema}"`;
} else if (permissionTypes.includes(ico.type)) {
name = `${ico.definition.role}-permission`;
definition = `${ico.type} on table "${getTableNameFromDef(