Skip to content

Commit

Permalink
Fixing errors and warning
Browse files Browse the repository at this point in the history
  • Loading branch information
HunterBarclay committed Mar 16, 2024
1 parent ef20dbe commit e8a422a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
3 changes: 2 additions & 1 deletion fission/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ module.exports = {
'varsIgnorePattern': '^_',
'caughtErrorsIgnorePattern': '^_'
}
]
],
'@typescript-eslint/no-explicit-any': 'off'
},

}
18 changes: 10 additions & 8 deletions fission/src/Synthesis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -141,17 +141,19 @@ function Synthesis() {
</motion.div>
)

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)
Expand Down

0 comments on commit e8a422a

Please sign in to comment.