aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/PropertiesView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2020-12-16 21:39:47 -0500
committerbobzel <zzzman@gmail.com>2020-12-16 21:39:47 -0500
commit0fbfb06c499d2ee52b086427cbf1c5431fadfad9 (patch)
tree0630334a1ebce2bada102c37a8936772cd68b6df /src/client/views/PropertiesView.tsx
parentf5527e423c3eaa104bec4904f6c778cf1f58a496 (diff)
simplified DocumentView a bit more. cleaned up other code.
Diffstat (limited to 'src/client/views/PropertiesView.tsx')
-rw-r--r--src/client/views/PropertiesView.tsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/PropertiesView.tsx b/src/client/views/PropertiesView.tsx
index 32342075c..4aeb4e63a 100644
--- a/src/client/views/PropertiesView.tsx
+++ b/src/client/views/PropertiesView.tsx
@@ -119,7 +119,7 @@ export class PropertiesView extends React.Component<PropertiesViewProps> {
if (this.dataDoc && this.selectedDoc) {
const ids: { [key: string]: string } = {};
const docs = SelectionManager.Views().length < 2 ? [this.layoutFields ? Doc.Layout(this.selectedDoc) : this.dataDoc] :
- SelectionManager.Views().map(dv => this.layoutFields ? Doc.Layout(dv.layoutDoc) : dv.dataDoc);
+ SelectionManager.Views().map(dv => this.layoutFields ? dv.layoutDoc : dv.dataDoc);
docs.forEach(doc => Object.keys(doc).forEach(key => !(key in ids) && doc[key] !== ComputedField.undefined && (ids[key] = key)));
const rows: JSX.Element[] = [];
for (const key of Object.keys(ids).slice().sort()) {