diff --git a/frontend/src/features/examples/OwnVocabTreasury.tsx b/frontend/src/features/examples/OwnVocabTreasury.tsx index fe77436..86cdbb6 100644 --- a/frontend/src/features/examples/OwnVocabTreasury.tsx +++ b/frontend/src/features/examples/OwnVocabTreasury.tsx @@ -25,7 +25,6 @@ import { ActionFetchExamples, fetchExamples } from "./examplesSlice"; import { IActionAlertsCreate, alertsCreate } from "../alerts/alertsSlice"; interface LocationStateWithinOwnVocabTreasury { - fromRecordNewExample: null | boolean; fromSingleExample: null | boolean; fromEditExample: null | boolean; } @@ -54,14 +53,6 @@ export const OwnVocabTreasury = () => { let location = useLocation(); let initialExamplesUrl: string; - // if ( - // location.state && - // location.state.fromRecordNewExample === true && - // examplesLinks.last !== null - // ) { - // console.log(" from /example/new (i.e. )"); - // initialExamplesUrl = examplesLinks.last; - // } else if ( if ( location.state && location.state.fromSingleExample && diff --git a/frontend/src/features/examples/RecordNewExample.tsx b/frontend/src/features/examples/RecordNewExample.tsx index c38702f..f876ab8 100644 --- a/frontend/src/features/examples/RecordNewExample.tsx +++ b/frontend/src/features/examples/RecordNewExample.tsx @@ -83,9 +83,6 @@ export const RecordNewExample = () => { const locationDescriptor = { pathname: "/own-vocabtreasury", - state: { - fromRecordNewExample: true, - }, }; history.push(locationDescriptor); } catch (err) {