Skip to content

Commit

Permalink
fix(QueryBuilder): value renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
MEsteves22 committed Apr 1, 2024
1 parent f311f6e commit d040a1f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/QueryBuilder/Rule/Value/Value.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ export const Value = ({
const { attributes, initialTouched, renderers, emptyRenderer } =
useQueryBuilderContext();

const attrType =
attribute && attributes ? attributes[attribute].type : undefined;
const attrType = attributes?.[attribute]?.type;

// Empty value renderer
if (emptyRenderer?.find((op) => op === operator)) {
Expand Down

0 comments on commit d040a1f

Please sign in to comment.