I've created a custom view that includes a popup description of each file in my SharePoint library.
This works well when I'm within a sub-folder that has a list of files, but when I navigate to the main list of sub-folders within the library the custom formatting continues and a blank pop up appears because the folders don't have descriptions.
Is there a way to use conditional formatting so that the pop-up only appears for rows that have text in the description column?
This is my code currently:
{ "elmType": "div", "style": { "font-size": "16px", "color": "white" }, "txtContent": "@currentField", "customCardProps": { "formatter": { "elmType": "div", "txtContent": "[$Description]", "style": { "font-size": "14px", "padding": "10px", "width": "500px", "color": "black", "background-color": "white" } }, "openOnEvent": "hover", "directionalHint": "bottomCenter", "isBeakVisible": true, "beakStyle": { "backgroundColor": "white" } } } 
