Commit 0be897a2 authored by Michael Vrana's avatar Michael Vrana

Warning cleanup

parent 1f10e819
Pipeline #90577 failed with stages
in 5 minutes and 32 seconds
import React, { useLayoutEffect, memo } from 'react'
import { useLayoutEffect, memo } from 'react'
import { useDispatch } from 'react-redux'
import { algorithmGraphFromJSON } from '../../interfaces/AlgorithmGraph'
import { algorithmDataActions } from '../../reducers/algorithmData'
......@@ -10,6 +10,7 @@ export const QueryImporter = memo(() => {
const dispatch = useDispatch()
const { enqueueSnackbar } = useSnackbar()
// eslint-disable-next-line
useLayoutEffect(() => {
const urlParams = new URLSearchParams(window.location.search)
const importUrl = urlParams.get('importUrl')
......@@ -25,7 +26,8 @@ export const QueryImporter = memo(() => {
enqueueSnackbar('Error while importing project', {
variant: 'error'
})
})
})
// eslint-disable-next-line
}, [])
return null
......
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