diff --git a/app/components/ReadMe.tsx b/app/components/ReadMe.tsx index 8400a165..b83759ba 100644 --- a/app/components/ReadMe.tsx +++ b/app/components/ReadMe.tsx @@ -9,7 +9,6 @@ const DEBOUNCE_TIMER = 1000 export interface ReadmeProps { peername: string - path: string name: string value: string preview: string diff --git a/app/containers/ReadmeContainer.tsx b/app/containers/ReadmeContainer.tsx index 051a16ef..3c0a14ab 100644 --- a/app/containers/ReadmeContainer.tsx +++ b/app/containers/ReadmeContainer.tsx @@ -5,17 +5,14 @@ import Store from '../models/store' import { fsiWriteAndFetch, fetchReadmePreview } from '../actions/api' const mapStateToProps = (state: Store) => { - const { workingDataset, commitDetails, selections } = state - const history = selections.activeTab === 'history' - const dataset = history ? commitDetails : workingDataset - const { value } = dataset.components.readme + const { workingDataset, selections } = state + const { value } = workingDataset.components.readme - const { peername, name, commit } = selections + const { peername, name } = selections // get data for the currently selected component return { peername, - path: commit, name, value, history,