Skip to content

Commit

Permalink
Fix e2e tests 23
Browse files Browse the repository at this point in the history
  • Loading branch information
humandad committed Jun 21, 2024
1 parent 608d3a9 commit 1b2910e
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ const List: definition.UC<ListDefinition> = (props) => {
const componentId = api.component.getComponentIdFromProps(props)
const [mode] = api.component.useMode(componentId, definition.mode)

if (!wire) return null

if (!iterate) {
if (!wire) return null
const wireContext = context.addWireFrame({
wire: wire.getId(),
view: wire.getViewId(),
Expand All @@ -45,10 +44,10 @@ const List: definition.UC<ListDefinition> = (props) => {
}

const itemContexts = component.useContextFilter<wire.WireRecord>(
wire.getData() || [],
wire?.getData() || [],
definition.recordDisplay,
(record, context) => {
if (record) {
if (record && wire) {
context = context.addRecordFrame({
wire: wire.getId(),
record: record.getId(),
Expand Down

0 comments on commit 1b2910e

Please sign in to comment.