1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fixed import error for compute jobs

This commit is contained in:
Bogdan Fazakas 2021-08-04 15:55:27 +03:00
parent cfd5b6558e
commit 86a8c3b374
2 changed files with 6 additions and 7 deletions

View File

@ -36,14 +36,13 @@ exports.onCreatePage = async ({ page, actions }) => {
const handleClientSideOnlyAsset = page.path.match(/^\/asset/)
const handleClientSideOnlyAccount = page.path.match(/^\/account/)
if (handleClientSideOnlyAsset || handleClientSideOnlyAccount) {
page.matchPath = handleClientSideOnlyAsset
? '/asset/*'
: handleClientSideOnlyAsset
? '/account/*'
: '/'
if (handleClientSideOnlyAsset) {
page.matchPath = '/asset/*'
// Update the page.
createPage(page)
} else if (handleClientSideOnlyAccount) {
page.matchPath = '/account/*'
createPage(page)
}
}

View File

@ -39,7 +39,7 @@ import { AssetSelectionAsset } from '../../../molecules/FormFields/AssetSelectio
import AlgorithmDatasetsListForCompute from '../../AssetContent/AlgorithmDatasetsListForCompute'
import { getPreviousOrders, getPrice } from '../../../../utils/subgraph'
import AssetActionHistoryTable from '../../AssetActionHistoryTable'
import ComputeJobs from '../../../pages/History/ComputeJobs'
import ComputeJobs from '../../../pages/Account/History/ComputeJobs'
const SuccessAction = () => (
<Button style="text" to="/account?defaultTab=ComputeJobs" size="small">