Skip to content

extractAttributeFromDict returns an empty dict if an attribute is missing #28

@abursavich

Description

@abursavich

SELECT returns an empty object when a field is missing because extractAttributeFromDict defaults the subtree to an empty dict instead of None.

fieldsComponents = attribute.split('.')
for component in fieldsComponents:
subtree = subtree.get(component, {})
if subtree is None:
return None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions