From fa867c9832395e9d24367795a95b87f483b9f95f Mon Sep 17 00:00:00 2001 From: mateuswetah Date: Mon, 12 Jul 2021 10:26:29 -0300 Subject: [PATCH] Improves detection of not present tainaca_plugin in the thumbnail helper function. --- src/views/admin/js/utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/admin/js/utilities.js b/src/views/admin/js/utilities.js index 9168be283..a16e0784f 100644 --- a/src/views/admin/js/utilities.js +++ b/src/views/admin/js/utilities.js @@ -4,7 +4,7 @@ export const ThumbnailHelperPlugin = {}; export const ThumbnailHelperFunctions = () => { return { imagesFolderPath() { - return tainacan_plugin ? (tainacan_plugin.base_url + '/assets/images/') : (tainacan_blocks ? (tainacan_blocks.base_url + '/assets/images/') : '/assets/images/'); + return typeof tainacan_plugin != 'undefined' ? (tainacan_plugin.base_url + '/assets/images/') : (tainacan_blocks ? (tainacan_blocks.base_url + '/assets/images/') : '/assets/images/'); }, getSrc(thumbnail, tainacanSize, documentType) { const wordpressSize = this.getWordpressFallbackSize(tainacanSize);