Error thrown

Attempt to assign property "labels" on null