From 9276706218466e062ac242c9bb053b521d82594e Mon Sep 17 00:00:00 2001 From: Anoop N Date: Tue, 22 Aug 2023 16:29:34 +0530 Subject: [PATCH] fix(web): add 1-click modules ref: DTRSD-101301 Signed-off-by: Anoop N --- .../hosting/module/add/hosting-module-add.controller.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/manager/apps/web/client/app/hosting/module/add/hosting-module-add.controller.js b/packages/manager/apps/web/client/app/hosting/module/add/hosting-module-add.controller.js index a033269f6a0f..d7fa69d2d2de 100644 --- a/packages/manager/apps/web/client/app/hosting/module/add/hosting-module-add.controller.js +++ b/packages/manager/apps/web/client/app/hosting/module/add/hosting-module-add.controller.js @@ -338,11 +338,11 @@ angular $stateParams.productId, $scope.model.domain, ) - .then((domain) => { + .then((data) => { $scope.loading.domains = false; - $scope.pathPrefix = /\/$/.test(domain.path) - ? domain.path - : `${domain.path}/`; + $scope.pathPrefix = /\/$/.test(data.path) + ? data.path + : `${data.path}/`; if (/^[/.]/.test($scope.pathPrefix)) { $scope.rootPathPrefix = '';