Compare commits

...

1 Commits

Author SHA1 Message Date
Irtiza-h30
5a49a0301e get radius profile query 2020-08-05 12:02:08 -04:00

View File

@@ -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}
/>
);