From cdfcccff3c59fce976d63a14dc38930f74e35c8b Mon Sep 17 00:00:00 2001 From: Cilibiu Bogdan Date: Wed, 4 Jul 2018 18:49:32 +0300 Subject: [PATCH] [ACA-1523] Shared - file version manager (#486) * workaround shared isFile * revert commented --- src/app/components/shared-files/shared-files.component.html | 4 ++-- src/app/store/reducers/app.reducer.ts | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/components/shared-files/shared-files.component.html b/src/app/components/shared-files/shared-files.component.html index 29c92d2e1..8e74cdcf2 100644 --- a/src/app/components/shared-files/shared-files.component.html +++ b/src/app/components/shared-files/shared-files.component.html @@ -80,8 +80,8 @@ diff --git a/src/app/store/reducers/app.reducer.ts b/src/app/store/reducers/app.reducer.ts index 30c8f83ba..38d559e25 100644 --- a/src/app/store/reducers/app.reducer.ts +++ b/src/app/store/reducers/app.reducer.ts @@ -152,7 +152,10 @@ function updateSelectedNodes( last = nodes[nodes.length - 1]; if (nodes.length === 1) { - file = nodes.find(entity => entity.entry.isFile); + file = nodes.find(entity => { + // workaround Shared + return entity.entry.isFile || entity.entry.nodeId; + }); folder = nodes.find(entity => entity.entry.isFolder); } }