1
0
Fork 0
mirror of synced 2024-07-14 18:55:45 +12:00
This commit is contained in:
Adria Navarro 2023-08-09 13:59:07 +03:00
parent 082166d8f9
commit 1b9784013c
2 changed files with 2 additions and 2 deletions

View file

@ -217,7 +217,7 @@ export async function save(ctx: UserCtx<SaveTableRequest, SaveTableResponse>) {
...inputs,
}
let oldTable
let oldTable: Table | undefined
if (ctx.request.body && ctx.request.body._id) {
oldTable = await sdk.tables.getTable(ctx.request.body._id)
}

View file

@ -418,7 +418,7 @@ export function areSwitchableTypes(type1: any, type2: any) {
return false
}
export function hasTypeChanged(table: any, oldTable: any) {
export function hasTypeChanged(table: Table, oldTable: Table | undefined) {
if (!oldTable) {
return false
}