add empty string fallbacks for old QRs

This commit is contained in:
LenAnderson 2024-01-05 16:45:36 +00:00
parent e117c9da4e
commit 7049ec0e12
1 changed files with 3 additions and 3 deletions

View File

@ -91,9 +91,9 @@ const loadSets = async () => {
set.qrList = set.quickReplySlots.map((slot,idx)=>{ set.qrList = set.quickReplySlots.map((slot,idx)=>{
const qr = {}; const qr = {};
qr.id = idx + 1; qr.id = idx + 1;
qr.label = slot.label; qr.label = slot.label ?? '';
qr.title = slot.title; qr.title = slot.title ?? '';
qr.message = slot.mes; qr.message = slot.mes ?? '';
qr.isHidden = slot.hidden ?? false; qr.isHidden = slot.hidden ?? false;
qr.executeOnStartup = slot.autoExecute_appStartup ?? false; qr.executeOnStartup = slot.autoExecute_appStartup ?? false;
qr.executeOnUser = slot.autoExecute_userMessage ?? false; qr.executeOnUser = slot.autoExecute_userMessage ?? false;