bot-detector icon indicating copy to clipboard operation
bot-detector copied to clipboard

Fix for when prediction breakdown does not contain main label

Open Cyborger1 opened this issue 11 months ago • 0 comments

If the API returns a breakdown with at least one element and that breakdown does not contain the primary label, it is added before being sent over to the plugin. Ideally this should not happen, this is more of a fallback measure.

Also some random changes to using isEmpty() in there, I'm not sure why I didn't use those before.

Cyborger1 avatar Mar 05 '24 21:03 Cyborger1