Merge master

This commit is contained in:
Pieter Vander Vennet 2024-10-15 16:54:09 +02:00
commit 44c31594b7
98 changed files with 2018 additions and 1589 deletions

View file

@ -63,7 +63,7 @@
return
}
await state?.imageUploadManager.uploadImageAndApply(file, tags, targetKey, noBlur)
await state?.imageUploadManager?.uploadImageAndApply(file, tags, targetKey, noBlur)
} catch (e) {
console.error(e)
state.reportError(e, "Could not upload image")

View file

@ -93,10 +93,10 @@ export default class OpeningHoursState {
let str = OH.ToString(rules) + ";"
const ph = this.phSelectorValue.data
if (ph) {
str += ph + ";"
str += " " + ph + ";" // There must be a space after every ";"
}
str += this.leftoverRules.data.join(";") + ";"
str += this.leftoverRules.data.join("; ") + ";"
str = str.trim()
while (str.endsWith(";")) {

View file

@ -56,7 +56,7 @@
currentValue.ping()
if (isTagRenderingBlock) {
state.highlightedItem.setData({ path: [...path, currentValue.data.length - 1], schema })
state.highlightedItem?.setData({ path: [...path, currentValue.data.length - 1], schema })
}
}