Schedulconponent Fixed dayslot parsing
This commit is contained in:
parent
8941c7ec81
commit
5efb26e952
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue