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:
parent
cfd5b6558e
commit
86a8c3b374
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user