File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { getCurrentUrl , route } from 'preact-router'
22import { useMemo } from 'preact/hooks'
3- import config from '../Config.js'
4- import { getGenerator } from '../Utils.js'
53import { SchemaGenerator } from '../components/generator/SchemaGenerator.jsx'
64import { ErrorPanel , Octicon } from '../components/index.js'
5+ import config from '../Config.js'
76import { useLocale , useTitle , useVersion } from '../contexts/index.js'
87import type { VersionId } from '../services/index.js'
98import { checkVersion } from '../services/index.js'
9+ import { getGenerator } from '../Utils.js'
1010
1111export const SHARE_KEY = 'share'
1212
@@ -19,7 +19,7 @@ export function Generator({}: Props) {
1919
2020 const gen = getGenerator ( getCurrentUrl ( ) )
2121 if ( ! gen ) {
22- return < main > < ErrorPanel error = { locale ( 'generator.not_found' , getCurrentUrl ( ) ) } /> </ main >
22+ return < main > < ErrorPanel error = { locale ( 'generator.not_found' , getCurrentUrl ( ) ) } reportable = { false } /> </ main >
2323 }
2424
2525 const allowedVersions = useMemo ( ( ) => {
You can’t perform that action at this time.
0 commit comments