mirror of
https://github.com/System-End/site.git
synced 2026-04-19 23:22:49 +00:00
Make it work
This commit is contained in:
parent
d99e625034
commit
73bb13b31d
1 changed files with 5 additions and 4 deletions
|
|
@ -30,15 +30,16 @@ async function recordExists(name) {
|
|||
const exists = await joinTable.read({
|
||||
filterByFormula: `{Full Name} = '${name}'`
|
||||
})
|
||||
return typeof exists !== 'undefined'
|
||||
return typeof exists[0] !== 'undefined'
|
||||
}
|
||||
|
||||
function isEmpty(jsonObject) {
|
||||
let empty = true
|
||||
Object.entries(jsonObject).map(key => {
|
||||
if (key[1] !== '') {
|
||||
for (let key of Object.entries(jsonObject)) {
|
||||
if (key[1] !== '' && key[0] !== 'teen') {
|
||||
empty = false
|
||||
break
|
||||
}
|
||||
})
|
||||
}
|
||||
return empty
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue