Skip to content

Commit

Permalink
Fix GladysAssistant#932: fix bug preventing starting a scene from the…
Browse files Browse the repository at this point in the history
… scene list (GladysAssistant#993)
  • Loading branch information
Pierre-Gilles authored Nov 30, 2020
1 parent 5dc82cb commit 5370f44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion front/src/routes/scene/SceneCard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ class SceneCard extends Component {
try {
await this.setState({ saving: true });
await this.props.httpClient.post(`/api/v1/scene/${this.props.scene.selector}/start`);
} catch (e) {}
} catch (e) {
console.log(e);
}

// make sure the loader is displayed at least 200ms
setTimeout(() => this.setState({ saving: false }), 200);
};
Expand Down
2 changes: 1 addition & 1 deletion front/src/routes/scene/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import ScenePage from './ScenePage';
import actions from '../../actions/scene';
import { RequestStatus } from '../../utils/consts';

@connect('scenes,currentUrl,scenesGetStatus', actions)
@connect('httpClient,scenes,currentUrl,scenesGetStatus', actions)
class Scene extends Component {
componentWillMount() {
this.props.getScenes();
Expand Down

0 comments on commit 5370f44

Please sign in to comment.