From 5a49a0301e221eed85394fe9602eb91803ee569e Mon Sep 17 00:00:00 2001 From: Irtiza-h30 Date: Wed, 5 Aug 2020 12:02:08 -0400 Subject: [PATCH 1/2] get radius profile query --- app/containers/ProfileDetails/index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/containers/ProfileDetails/index.js b/app/containers/ProfileDetails/index.js index c28acb2..016ef89 100644 --- a/app/containers/ProfileDetails/index.js +++ b/app/containers/ProfileDetails/index.js @@ -77,9 +77,15 @@ const ProfileDetails = () => { const { loading, error, data } = useQuery(GET_PROFILE, { variables: { id }, }); + const { data: ssidProfiles } = useQuery(GET_ALL_PROFILES, { variables: { customerId, type: 'ssid' }, }); + + const { data: radiusProfiles } = useQuery(GET_ALL_PROFILES, { + variables: { customerId, type: 'radius' }, + }); + const [updateProfile] = useMutation(UPDATE_PROFILE); const [deleteProfile] = useMutation(DELETE_PROFILE); @@ -170,6 +176,7 @@ const ProfileDetails = () => { ssidProfiles={ (ssidProfiles && ssidProfiles.getAllProfiles && ssidProfiles.getAllProfiles.items) || [] } + radiusProfiles={radiusProfiles?.getAllProfiles?.items} fileUpload={handleFileUpload} /> ); From 8bde2ad4bceff3379c8b6d72f0361eeaeacfd8fb Mon Sep 17 00:00:00 2001 From: Sean Macfarlane Date: Tue, 18 Aug 2020 17:50:37 -0400 Subject: [PATCH 2/2] cleanup --- app/containers/ProfileDetails/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/containers/ProfileDetails/index.js b/app/containers/ProfileDetails/index.js index b32a1b0..1eaa83e 100644 --- a/app/containers/ProfileDetails/index.js +++ b/app/containers/ProfileDetails/index.js @@ -81,7 +81,7 @@ const ProfileDetails = () => { variables: { customerId, type: 'ssid' }, }); - const { data: radiusProfiles } = useQuery(GET_ALL_PROFILES, { + const { data: radiusProfiles } = useQuery(GET_ALL_PROFILES(), { variables: { customerId, type: 'radius' }, });