I'm using typescript on a react project and I just upgraded from Typescript 3.7.2 to 3.8. Now I'm getting an Object is possibly 'undefined'.
everywhere in the code base where I am doing something line this:
let fieldType = currentFilter ? currentFilter.fieldType : "TEXT";
Here is what the error looks like in VS code
Any suggestions on why this isn't working now?