Disable table action button when table contains no data


I'm trying to disable a delete action button in a table based on some row data. This works fine except in the case the table has no data. In this case I recieve an error that the variable currentRow is undefined. I tried checking for an undefined currentRow but this doesn't seem to work?


Could you try something like this?

{{typeof currentRow !== 'undefined' ? false : true}}

or you can use a double ampersand as it will default to true anyway

{{typeof currentRow !== 'undefined' && false}}