mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-23 15:17:09 +00:00
Remove unnecessary json parse and stringify step when importing
This commit is contained in:
@@ -48,7 +48,8 @@ export function ProjectCreation({ onClose }: Props) {
|
||||
const file = disectFilePath(entry[0], version)
|
||||
if (file) {
|
||||
try {
|
||||
const data = await parseSource(entry[1], 'json')
|
||||
const text = await parseSource(entry[1], 'json')
|
||||
const data = JSON.parse(text)
|
||||
project.files!.push({ ...file, data })
|
||||
return
|
||||
} catch (e) {
|
||||
|
||||
Reference in New Issue
Block a user