From 55b50609443d2ddf2134caaec85c1800164ef1c8 Mon Sep 17 00:00:00 2001 From: "Keith J. Grant" Date: Fri, 18 Jun 2021 13:03:55 -0700 Subject: [PATCH] remove duplicate JT credential fetch --- awx/ui_next/src/screens/Template/Template.jsx | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/awx/ui_next/src/screens/Template/Template.jsx b/awx/ui_next/src/screens/Template/Template.jsx index 277d8eb925..cff958ab30 100644 --- a/awx/ui_next/src/screens/Template/Template.jsx +++ b/awx/ui_next/src/screens/Template/Template.jsx @@ -72,16 +72,7 @@ function Template({ setBreadcrumb }) { surveyConfiguration = survey; } if (data.summary_fields.credentials) { - const params = { - page: 1, - page_size: 200, - order_by: 'name', - }; - const { - data: { results }, - } = await JobTemplatesAPI.readCredentials(data.id, params); - - data.summary_fields.credentials = results; + data.summary_fields.credentials = defaultCredentials; } if (actions.data.actions.PUT) {