This commit is contained in:
Lachlan Kermode
2020-06-26 17:00:22 +02:00
parent f3c6f2a11a
commit bcabc2b2dc
4 changed files with 8 additions and 9 deletions

View File

@@ -26,7 +26,7 @@ module.exports = {
features: {
USE_CATEGORIES: false,
CATEGORIES_AS_FILTERS: false,
USE_FILTERS: false,
USE_FILTERS: true,
FILTERS_AS_NARRATIVES: false,
USE_NARRATIVES: false,
USE_SOURCES: true,

View File

@@ -28,12 +28,12 @@ export function fetchDomain () {
const features = getState().features
dispatch(toggleFetchingDomain())
let configPromise = Promise.resolve([])
if (features.USE_REMOTE_CONFIG) {
configPromise = fetch(CONFIG_URL)
.then(response => response.json())
.catch(() => handleError("Couldn't find data at the config URL you specified."))
}
// let configPromise = Promise.resolve([])
// if (features.USE_REMOTE_CONFIG) {
// configPromise = fetch(CONFIG_URL)
// .then(response => response.json())
// .catch(() => handleError("Couldn't find data at the config URL you specified."))
// }
// NB: EVENT_DATA_URL is a list, and so results are aggregated
const eventPromise = Promise.all(

View File

@@ -65,7 +65,6 @@ class Card extends React.Component {
return <div>ERROR: something went wrong loading sources, TODO:</div>
}
const sourceLang = copy[this.props.language].cardstack.sources
return (
<div className='card-col'>

View File

@@ -161,7 +161,7 @@ class CardStack extends React.Component {
className={`card-stack narrative-mode
${isCardstack ? '' : ' folded'}`
}
style={{height}}
style={{ height }}
>
{this.renderNarrativeContent()}
</div>