Fixed a few more bugs
This commit is contained in:
parent
848961dc25
commit
1bde733cae
|
@ -30,9 +30,6 @@ class FlameLinkCollectionGallery extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
global.mediaURLs = [];
|
|
||||||
//global.mediaIDs = [];
|
|
||||||
|
|
||||||
this.state = {
|
this.state = {
|
||||||
schemaDetails: '',
|
schemaDetails: '',
|
||||||
schemaContent: '',
|
schemaContent: '',
|
||||||
|
@ -79,6 +76,9 @@ class FlameLinkCollectionGallery extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
createGallery(num) {
|
createGallery(num) {
|
||||||
|
if(num === '0'){
|
||||||
|
global.galleryImages = [];
|
||||||
|
}
|
||||||
return <FlameLinkCollectionGalleryContent mediaIDs={this} num={num} key={this[num]} />
|
return <FlameLinkCollectionGalleryContent mediaIDs={this} num={num} key={this[num]} />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,8 @@ class FlameLinkCollectionGalleryContent extends Component {
|
||||||
|
|
||||||
addURLs = () => {
|
addURLs = () => {
|
||||||
if (this.state.mediaURL === '') {
|
if (this.state.mediaURL === '') {
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
var element = {}
|
var element = {}
|
||||||
element.original = this.state.mediaURL;
|
element.original = this.state.mediaURL;
|
||||||
global.galleryImages.push(element);
|
global.galleryImages.push(element);
|
||||||
|
|
Loading…
Reference in New Issue