Schedulconponent Fixed dayslot parsing

This commit is contained in:
Jérémy Munsch 2022-08-30 09:32:41 +02:00
parent 8941c7ec81
commit 5efb26e952
No known key found for this signature in database
GPG key ID: 18361AF3BFEC0FEC

View file

@ -432,7 +432,7 @@ export default defineComponent({
const json = String(this.$attrs.json ?? "{}"),
data = JSON.parse(json);
this.daySlots = Number.isNaN(Number.parseInt(data.daySlots))
this.daySlots = !Number.isNaN(Number.parseInt(data.daySlots))
? Number.parseInt(data.daySlots)
: 4;
this.showWeekends = data.daySlots == "true" ? true : false;