I have an issue with ternary operator expression.
AssociatedItemType.ExRatedTag ? session?.data.reloadRow(ids) : this.reloadItemRows(this.prepareItemsIdentities(ids)!),
AssociatedItemType is enum.
I found out that const ? 1 : 2
always returns 1.
Why is that so? And what should I do to make my expression work as expected. I mean if true run
session?.data.reloadRow(ids)
if not
this.reloadItemRows(this.prepareItemsIdentities(ids)!)