mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 00:16:51 +00:00
Validate model loosly on load
This commit is contained in:
@@ -100,10 +100,9 @@ async function updateSchemas(version: string) {
|
||||
if (schema) {
|
||||
model.schema = schema
|
||||
if (JSON.stringify(model.data) === '{}') {
|
||||
model.data = schema.default()
|
||||
model.reset(schema.default(), true)
|
||||
model.history = [JSON.stringify(model.data)]
|
||||
model.historyIndex = 0
|
||||
model.silentInvalidate()
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user