From 1bde733caef065770a610aab555455969bfdd4f7 Mon Sep 17 00:00:00 2001 From: ajmaley Date: Sun, 25 Nov 2018 14:36:46 -0500 Subject: [PATCH] Fixed a few more bugs --- src/components/FlameLinkCollectionGallery.js | 6 +++--- src/components/FlameLinkCollectionGalleryContent.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/FlameLinkCollectionGallery.js b/src/components/FlameLinkCollectionGallery.js index 0e53917..c413b4b 100644 --- a/src/components/FlameLinkCollectionGallery.js +++ b/src/components/FlameLinkCollectionGallery.js @@ -30,9 +30,6 @@ class FlameLinkCollectionGallery extends Component { constructor(props) { super(props); - global.mediaURLs = []; - //global.mediaIDs = []; - this.state = { schemaDetails: '', schemaContent: '', @@ -79,6 +76,9 @@ class FlameLinkCollectionGallery extends Component { } createGallery(num) { + if(num === '0'){ + global.galleryImages = []; + } return } diff --git a/src/components/FlameLinkCollectionGalleryContent.js b/src/components/FlameLinkCollectionGalleryContent.js index d93c7de..ceeba0f 100644 --- a/src/components/FlameLinkCollectionGalleryContent.js +++ b/src/components/FlameLinkCollectionGalleryContent.js @@ -20,7 +20,8 @@ class FlameLinkCollectionGalleryContent extends Component { addURLs = () => { if (this.state.mediaURL === '') { - } else { + } + else { var element = {} element.original = this.state.mediaURL; global.galleryImages.push(element);