16812: Removed download attribute, fixed redirectTo
[arvados-workbench2.git] / src / views-components / context-menu / actions / collection-file-viewer-action.tsx
index 0a202daf21085513acc2ae62f00c43e866393d4c..cdc0c8294ca01f75e06ab59335633a1cab0ae304 100644 (file)
@@ -6,7 +6,6 @@ import { connect } from "react-redux";
 import { RootState } from "../../../store/store";
 import { FileViewerAction } from '~/views-components/context-menu/actions/file-viewer-action';
 import { getNodeValue } from "~/models/tree";
-import { CollectionFileType } from "~/models/collection-file";
 import { ContextMenuKind } from '~/views-components/context-menu/context-menu';
 
 const mapStateToProps = (state: RootState) => {
@@ -17,7 +16,6 @@ const mapStateToProps = (state: RootState) => {
         if (file) {
             return {
                 href: file.url,
-                download: file.type === CollectionFileType.DIRECTORY ? undefined : file.name,
                 kind: 'file',
                 currentCollectionUuid
             };