Skip to content

Instantly share code, notes, and snippets.

@kagklis
Created February 6, 2022 13:32
Show Gist options
  • Save kagklis/f30438b3a14b6d28a6dc1c867af9fb0a to your computer and use it in GitHub Desktop.
Save kagklis/f30438b3a14b6d28a6dc1c867af9fb0a to your computer and use it in GitHub Desktop.
// TODO: Revert temporary changes (special handle of bugged type)
// when backend issue is resolved.
public onSelection(selected: SomeObjectWithType): void {
if (selected.type === ObjectType.TypeWithBug)) {
// handles buggy case separately
} else {
// original behavior
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment