Merge pull request #132 from PhillipLangMartinez/bugfix/fix-name-exist-error-gif-collection

change res validation
This commit is contained in:
AlphaX-Projects 2023-02-20 14:05:45 +01:00 committed by GitHub
commit 61b5e1105d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,7 +417,7 @@ setOpenGifModal: { attribute: false }
return;
}
if (doesNameExist.length !== 0) {
if (doesNameExist.title) {
parentEpml.request('showSnackBar', get('gifs.gchange24'));
this.isLoading = false;
this.setGifsLoading(false);
@ -499,7 +499,7 @@ setOpenGifModal: { attribute: false }
url: `/arbitrary/metadata/GIF_REPOSITORY/${userName}/${this.newCollectionName}&apiKey=${this.getApiKey()}`,
}
);
if (myCollection.length > 0) {
if (myCollection.title) {
clearInterval(interval);
res();
}