tidy up
This commit is contained in:
parent
44426b6bf8
commit
2abd6ed7b2
|
@ -41,14 +41,11 @@
|
|||
([field, message]) => `${field} ${message}`
|
||||
)
|
||||
|
||||
$: console.log(record)
|
||||
|
||||
async function fetchModel() {
|
||||
const FETCH_MODEL_URL = `/api/models/${model}`
|
||||
const response = await _bb.api.get(FETCH_MODEL_URL)
|
||||
modelDef = await response.json()
|
||||
schema = modelDef.schema
|
||||
// record = createBlankRecord()
|
||||
record = {
|
||||
modelId: model,
|
||||
}
|
||||
|
|
|
@ -41,14 +41,12 @@
|
|||
([field, message]) => `${field} ${message}`
|
||||
)
|
||||
|
||||
$: console.log(record)
|
||||
|
||||
async function fetchModel() {
|
||||
const FETCH_MODEL_URL = `/api/models/${model}`
|
||||
const response = await _bb.api.get(FETCH_MODEL_URL)
|
||||
modelDef = await response.json()
|
||||
schema = modelDef.schema
|
||||
// record = createBlankRecord()
|
||||
record = {
|
||||
modelId: model,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue