diff --git a/app/containers/AddProfile/index.js b/app/containers/AddProfile/index.js index d5d9526..780fd62 100644 --- a/app/containers/AddProfile/index.js +++ b/app/containers/AddProfile/index.js @@ -37,36 +37,43 @@ const AddProfile = () => { const { customerId } = useContext(UserContext); const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), { variables: { customerId, type: 'ssid' }, + fetchPolicy: 'network-only', }); const { data: radiusProfiles, fetchMore: fetchMoreRadiusProfiles } = useQuery( GET_ALL_PROFILES(), { variables: { customerId, type: 'radius' }, + fetchPolicy: 'network-only', } ); const { data: captiveProfiles, fetchMore: fetchMoreCaptiveProfiles } = useQuery( GET_ALL_PROFILES(), { variables: { customerId, type: 'captive_portal' }, + fetchPolicy: 'network-only', } ); const { data: venueProfiles, fetchMore: fetchMoreVenueProfiles } = useQuery(GET_ALL_PROFILES(), { variables: { customerId, type: 'passpoint_venue' }, + fetchPolicy: 'network-only', }); const { data: operatorProfiles, fetchMore: fetchMoreOperatorProfiles } = useQuery( GET_ALL_PROFILES(), { variables: { customerId, type: 'passpoint_operator' }, + fetchPolicy: 'network-only', } ); const { data: idProviderProfiles, fetchMore: fetchMoreIdProviderProfiles } = useQuery( GET_ALL_PROFILES(), { variables: { customerId, type: 'passpoint_osu_id_provider' }, + fetchPolicy: 'network-only', } ); const { data: rfProfiles, fetchMore: fetchMoreRfProfiles } = useQuery(GET_ALL_PROFILES(), { variables: { customerId, type: 'rf' }, + fetchPolicy: 'network-only', }); const [createProfile] = useMutation(CREATE_PROFILE); const history = useHistory(); diff --git a/app/containers/ProfileDetails/index.js b/app/containers/ProfileDetails/index.js index fa830d5..1c00662 100644 --- a/app/containers/ProfileDetails/index.js +++ b/app/containers/ProfileDetails/index.js @@ -82,12 +82,14 @@ const ProfileDetails = () => { const { data: ssidProfiles, fetchMore } = useQuery(GET_ALL_PROFILES(), { variables: { customerId, type: 'ssid' }, + fetchPolicy: 'network-only', }); const { data: radiusProfiles, fetchMore: fetchMoreRadiusProfiles } = useQuery( GET_ALL_PROFILES(), { variables: { customerId, type: 'radius' }, + fetchPolicy: 'network-only', } ); @@ -95,17 +97,20 @@ const ProfileDetails = () => { GET_ALL_PROFILES(), { variables: { customerId, type: 'captive_portal' }, + fetchPolicy: 'network-only', } ); const { data: venueProfiles, fetchMore: fetchMoreVenueProfiles } = useQuery(GET_ALL_PROFILES(), { variables: { customerId, type: 'passpoint_venue' }, + fetchPolicy: 'network-only', }); const { data: operatorProfiles, fetchMore: fetchMoreOperatorProfiles } = useQuery( GET_ALL_PROFILES(), { variables: { customerId, type: 'passpoint_operator' }, + fetchPolicy: 'network-only', } ); @@ -113,11 +118,13 @@ const ProfileDetails = () => { GET_ALL_PROFILES(), { variables: { customerId, type: 'passpoint_osu_id_provider' }, + fetchPolicy: 'network-only', } ); const { data: rfProfiles, fetchMore: fetchMoreRfProfiles } = useQuery(GET_ALL_PROFILES(), { variables: { customerId, type: 'rf' }, + fetchPolicy: 'network-only', }); const [updateProfile] = useMutation(UPDATE_PROFILE); diff --git a/package.json b/package.json index b49e8fd..85a0e1d 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "scripts": { "test": "jest --passWithNoTests --coverage", "start": "cross-env NODE_ENV=development webpack-dev-server", - "start:bare": "cross-env API=https://wlan-graphql.qa.lab.wlan.tip.build NODE_ENV=bare webpack-dev-server", + "start:bare": "cross-env API=ttps://portal.rtl.lab.netexperience.com NODE_ENV=bare webpack-dev-server", "start:dev": "cross-env API=https://portal.rtl.lab.netexperience.com NODE_ENV=development webpack-dev-server", "build": "webpack --mode=production", "format": "prettier --write 'app/**/*{.js,.scss}'",