mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
fix compute jobs table auto refresh and details modal closing
This commit is contained in:
parent
dff4a0ca1c
commit
692fb509f6
@ -94,10 +94,6 @@ export default function FormStartCompute({
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
console.log('values.algorithm', values.algorithm)
|
||||
console.log('accountId', accountId)
|
||||
console.log('isConsumable', isConsumable)
|
||||
|
||||
if (!values.algorithm || !accountId || !isConsumable) return
|
||||
async function fetchAlgorithmAssetExtended() {
|
||||
const algorithmAsset = getAlgorithmAsset(values.algorithm)
|
||||
|
@ -76,15 +76,14 @@ export default function ComputeJobs({
|
||||
minimal?: boolean
|
||||
assetChainId?: number[]
|
||||
}): ReactElement {
|
||||
const { accountId, networkId } = useWeb3()
|
||||
const { accountId } = useWeb3()
|
||||
const { asset } = useAsset()
|
||||
const { chainIds } = useUserPreferences()
|
||||
const [isLoading, setIsLoading] = useState(false)
|
||||
const [jobs, setJobs] = useState<ComputeJobMetaData[]>([])
|
||||
const isMounted = useIsMounted()
|
||||
const newCancelToken = useCancelToken()
|
||||
|
||||
const columnsMinimal = [columns[4], columns[5], columns[3]]
|
||||
const [columnsMinimal] = useState([columns[4], columns[5], columns[3]])
|
||||
|
||||
const fetchJobs = useCallback(async () => {
|
||||
if (!chainIds || chainIds.length === 0 || !accountId) {
|
||||
|
Loading…
Reference in New Issue
Block a user