Don't include slot if it is 'None'

This commit is contained in:
Adam Goldsmith 2021-09-08 19:48:27 -04:00
parent df38eadc4c
commit fb0a079666

View File

@ -139,7 +139,7 @@ function build_card(component) {
}
var raw_slot = component.settings.get('Slot');
if (raw_slot) {
if (raw_slot && raw_slot != 'None') {
card_data.slot = renameSlot(String(raw_slot));
var raw_slot2 = component.settings.get('Slot2');
if (raw_slot2 && raw_slot2 != 'None') {