1
0
Fork 0
mirror of synced 2024-09-08 05:31:47 +12:00

Fix overriding view v2 schema

This commit is contained in:
Adria Navarro 2023-08-07 17:21:58 +03:00
parent b7dd40eb6a
commit af2fac6958

View file

@ -97,7 +97,7 @@ export async function save(ctx: any) {
// update schema of non-statistics views when new columns are added
for (let view in tableToSave.views) {
const tableView = tableToSave.views[view]
if (!tableView) continue
if (!tableView || sdk.views.isV2(tableView)) continue
if (
(tableView.schema as ViewStatisticsSchema).group ||