We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 753f3fd commit b3df349Copy full SHA for b3df349
packages/backend/src/apps/tiles/actions/find-single-row/index.ts
@@ -149,9 +149,6 @@ const action: IRawAction = {
149
}
150
151
const step = await Step.query().findById($.step.id).throwIfNotFound()
152
- /**
153
- * Check for columns first, there will not be any columns if the tile has been deleted.
154
- */
155
156
const table = await TableMetadata.query()
157
.findById(tableId)
@@ -202,7 +199,7 @@ const action: IRawAction = {
202
199
})
203
200
204
201
if (!rows || !rows.length) {
205
- const emptyRow = columns.reduce((acc, c) => {
+ const emptyRow = table.columns.reduce((acc, c) => {
206
acc[c.id] = ''
207
return acc
208
}, {} as Record<string, string>)
0 commit comments