perspective: view fix, UX

This commit is contained in:
Jan Prochazka
2022-08-29 22:37:04 +02:00
parent c1627b8546
commit e64d013fee
3 changed files with 35 additions and 13 deletions

View File

@@ -32,11 +32,14 @@
const table = dbInfos?.[node.conid || conid]?.[node.database || database]?.tables?.find(
x => x.pureName == node.pureName && x.schemaName == node.schemaName
);
if (!table) return null;
const view = dbInfos?.[node.conid || conid]?.[node.database || database]?.views?.find(
x => x.pureName == node.pureName && x.schemaName == node.schemaName
);
if (!table && !view) return null;
const { designerId } = node;
return {
...table,
...(table || view),
left: node?.position?.x || 0,
top: node?.position?.y || 0,
alias: node.alias,