fix: add optional chaining for aggregateAttribute key check in Query component

This commit is contained in:
ahmadshaheer 2025-05-21 15:02:18 +04:30
parent aaabd0f904
commit 02a68c3098

View File

@ -324,7 +324,7 @@ export const Query = memo(function Query({
]);
const disableOperatorSelector =
!query?.aggregateAttribute.key || query?.aggregateAttribute.key === '';
!query?.aggregateAttribute?.key || query?.aggregateAttribute?.key === '';
const isVersionV4 = version && version === ENTITY_VERSION_V4;