This commit is contained in:
Martin McKeaveney 2020-09-10 13:09:44 +01:00
parent 44426b6bf8
commit 2abd6ed7b2
2 changed files with 0 additions and 5 deletions

View File

@ -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,
}

View File

@ -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,
}