Hello,
I have used the same code with in formatter for 2 different data inputs and it is working as intended for one and not working for the other.
working JS Fiddle: https://jsfiddle.net/Chaitwo/nfxrL7ka/
not working JS Fiddle: https://jsfiddle.net/Chaitwo/rnh7jc2s/
I really appreciate any help you can provide.