diff --git a/fission/.eslintrc.cjs b/fission/.eslintrc.cjs index 646f760030..c5c1a4db57 100644 --- a/fission/.eslintrc.cjs +++ b/fission/.eslintrc.cjs @@ -21,7 +21,8 @@ module.exports = { 'varsIgnorePattern': '^_', 'caughtErrorsIgnorePattern': '^_' } - ] + ], + '@typescript-eslint/no-explicit-any': 'off' }, } diff --git a/fission/src/Synthesis.tsx b/fission/src/Synthesis.tsx index 7b2ddef80a..157f4a9871 100644 --- a/fission/src/Synthesis.tsx +++ b/fission/src/Synthesis.tsx @@ -141,17 +141,19 @@ function Synthesis() { ) - let mira_path = DEFAULT_MIRA_PATH; + + + useEffect(() => { - const urlParams = new URLSearchParams(document.location.search); + let mira_path = DEFAULT_MIRA_PATH; - if (urlParams.has("mira")) { - mira_path = `test_mira/${urlParams.get("mira")!}`; - console.debug(`Selected Mirabuf File: ${mira_path}`); - } - console.log(urlParams) + const urlParams = new URLSearchParams(document.location.search); - useEffect(() => { + if (urlParams.has("mira")) { + mira_path = `test_mira/${urlParams.get("mira")!}`; + console.debug(`Selected Mirabuf File: ${mira_path}`); + } + console.log(urlParams) const setup = async () => { const miraAssembly = await LoadMirabufRemote(mira_path)