Skip to content

Commit dd04a14

Browse files
committed
fix: rebase conflict
1 parent 8c034ac commit dd04a14

File tree

1 file changed

+1
-4
lines changed
  • packages/backend/src/apps/tiles/actions/find-single-row

1 file changed

+1
-4
lines changed

packages/backend/src/apps/tiles/actions/find-single-row/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,6 @@ const action: IRawAction = {
149149
}
150150

151151
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-
*/
155152

156153
const table = await TableMetadata.query()
157154
.findById(tableId)
@@ -202,7 +199,7 @@ const action: IRawAction = {
202199
})
203200

204201
if (!rows || !rows.length) {
205-
const emptyRow = columns.reduce((acc, c) => {
202+
const emptyRow = table.columns.reduce((acc, c) => {
206203
acc[c.id] = ''
207204
return acc
208205
}, {} as Record<string, string>)

0 commit comments

Comments
 (0)