mirror of
https://github.com/ascribe/onion.git
synced 2024-11-15 01:25:17 +01:00
minor fix
This commit is contained in:
parent
82b9b68338
commit
4101cd70ed
@ -31,7 +31,7 @@ let SlidesContainer = React.createClass({
|
||||
|
||||
// We can actually need to check if slide_num is present as a key in queryParams.
|
||||
// We do not really care about its value though...
|
||||
if(queryParams && 'slide_num' in queryParams.slide_num) {
|
||||
if(queryParams && 'slide_num' in queryParams) {
|
||||
slideNum = parseInt(queryParams.slide_num, 10);
|
||||
}
|
||||
// if slide_num is not set, this will be done in componentDidMount
|
||||
|
Loading…
Reference in New Issue
Block a user