Commit 22eb41d7 authored by Andrey Azov's avatar Andrey Azov

Handle LoadingState.NOT_REQUESTED in ZmenuInstantDownload

parent 234024a0
Pipeline #80263 passed with stages
in 5 minutes and 5 seconds
/**
* See the NOTICE file distributed with this work for additional information
* regarding copyright ownership.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import React from 'react';
import useApiService from 'src/shared/hooks/useApiService';
......@@ -24,7 +40,10 @@ const ZmenuInstantDownload = (props: Props) => {
params
);
if (loadingState === LoadingState.LOADING) {
if (
loadingState === LoadingState.NOT_REQUESTED ||
loadingState === LoadingState.LOADING
) {
return (
<div className={styles.zmenuInstantDowloadLoading}>
<CircleLoader />
......
......@@ -32,7 +32,7 @@ const devServerConfig = {
// rules to proxy requests to the backend server in development
proxy: {
'/api': {
target: 'http://hx-rke-wp-webadmin-14-worker-1.caas.ebi.ac.uk:32014',
target: 'https://staging-2020.ensembl.org',
changeOrigin: true,
secure: false
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment