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
}