Revert bad merge change 97/897/1
authorKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Mon, 9 Jan 2017 20:11:29 +0000 (15:11 -0500)
committerKIRAN KASHALKAR <kiran.kashalkar@riftio.com>
Mon, 9 Jan 2017 20:11:29 +0000 (15:11 -0500)
Signed-off-by: KIRAN KASHALKAR <kiran.kashalkar@riftio.com>
skyquake/plugins/composer/src/src/libraries/CatalogPackageManagerUploadDropZone.js

index 690118d..87afb6a 100644 (file)
@@ -49,7 +49,7 @@ function initializeDropZone(element = '#dropzone', button = false, action = ACTI
                        if (action === ACTIONS.update) {
                                return getCatalogPackageManagerServerOrigin() + '/api/update';
                        }
-                       return getCatalogPackageManagerServerOrigin() + '/composer/upload?api_server=' + Utils.getSearchParams(window.location).api_server + '&upload_server=' + Utils.getSearchParams(window.location).upload_server + '&dev_download_server=' + Utils.getSearchParams(window.location).dev_download_server;
+                       return getCatalogPackageManagerServerOrigin() + '/composer/upload?api_server=' + Utils.getSearchParams(window.location).api_server + '&upload_server=' + Utils.getSearchParams(window.location).upload_server + ( dev_download_server ? '&dev_download_server=' + dev_download_server : '');
                },
                headers: {
                        'Authorization': Auth