X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/46751b9305a7e991d484494facd1f40790254d40..3efbabfcd06a10b83f1f130141d6c1f6017037cf:/src/views-components/data-explorer/with-resources.tsx diff --git a/src/views-components/data-explorer/with-resources.tsx b/src/views-components/data-explorer/with-resources.tsx index 399a2d05..54c9396c 100644 --- a/src/views-components/data-explorer/with-resources.tsx +++ b/src/views-components/data-explorer/with-resources.tsx @@ -6,10 +6,10 @@ import * as React from 'react'; import { connect } from 'react-redux'; import { RootState } from '~/store/store'; import { getResource } from '~/store/resources/resources'; -import { Resource, ResourceTypes } from '~/models/resource'; +import { Resource } from '~/models/resource'; interface WithResourceProps { - resource?: ResourceTypes; + resource?: Resource; } export const withResource = (component: React.ComponentType) => @@ -19,7 +19,7 @@ export const withResource = (component: React.ComponentType { +export const getDataFromResource = (property: string, resource?: Resource) => { return resource && resource[property] ? resource[property] : '(none)'; };