From 083854014a82fa6ec31b36a2235f76d4c2c86cb4 Mon Sep 17 00:00:00 2001 From: CrisTofani Date: Mon, 26 Feb 2018 12:21:46 +0100 Subject: [PATCH] User story view detail fixed --- src/components/UserStory/sections/UserStoryGraph.js | 2 +- src/components/UserStory/sections/UserStoryImage.js | 11 +++-------- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/src/components/UserStory/sections/UserStoryGraph.js b/src/components/UserStory/sections/UserStoryGraph.js index cdb953fb..af21f638 100644 --- a/src/components/UserStory/sections/UserStoryGraph.js +++ b/src/components/UserStory/sections/UserStoryGraph.js @@ -15,7 +15,7 @@ class UserStoryView extends React.Component { border: '0' } - if(this.props.graph.type === 'TextWidget') + if(this.props.graph.props.wid_key.indexOf('TextWidget')!=-1) return(
) diff --git a/src/components/UserStory/sections/UserStoryImage.js b/src/components/UserStory/sections/UserStoryImage.js index 1682e4d2..3acf6dfd 100644 --- a/src/components/UserStory/sections/UserStoryImage.js +++ b/src/components/UserStory/sections/UserStoryImage.js @@ -46,7 +46,7 @@ class UserStoryImage extends React.Component { width: '100%' } - if (this.props.graph.type === 'TextWidget') + if (this.props.graph.props.wid_key.indexOf('TextWidget') != -1) return (
) @@ -59,13 +59,8 @@ class UserStoryImage extends React.Component { ? : this.state.loading === true ?

Caricamento ...

: (
- { - this.props.story && -
- {this.state.imageSrc && - - } -
+ {this.state.imageSrc && + }
);