From 3b754ec401e044546b6ee5b0eb0612600604eba3 Mon Sep 17 00:00:00 2001 From: James Date: Tue, 26 Feb 2019 17:46:08 -0500 Subject: [PATCH] Revert "WIP: demonstrates handling fallback locale on the front end instead of in the api" This reverts commit c9a579b1df9af7d48629d320d0c06f8dccda3699. --- demo/Page/components/Edit/index.js | 9 ++------- src/components/data/edit.js | 4 ++-- src/components/views/collections/Edit/index.js | 15 ++++----------- 3 files changed, 8 insertions(+), 20 deletions(-) diff --git a/demo/Page/components/Edit/index.js b/demo/Page/components/Edit/index.js index f700cde98e..73b2e84e7a 100644 --- a/demo/Page/components/Edit/index.js +++ b/demo/Page/components/Edit/index.js @@ -18,11 +18,6 @@ const Edit = props => { const { id } = props.match.params; const { data, collection, config } = props; - function get(attribute) { - // TODO: if the app is not using localization this will need to be revisited - return data[attribute] && props.locale && data[attribute][props.locale] ? data[attribute][props.locale] : ''; - } - const sampleRepeaterValue = [ { content: 'here\'s some test content' @@ -47,12 +42,12 @@ const Edit = props => {