mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-19 13:13:44 +02:00
fix: remove userId null error in AvailabilityViewModel
This commit is contained in:
parent
84fe794b4b
commit
fd2bef92ac
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class AvailabilityViewModel {
|
||||||
);
|
);
|
||||||
return AvailabilityModel(
|
return AvailabilityModel(
|
||||||
id: ids?.firstOrNull,
|
id: ids?.firstOrNull,
|
||||||
userId: userId!,
|
userId: userId ?? "",
|
||||||
startDate: startDate,
|
startDate: startDate,
|
||||||
endDate: endDate,
|
endDate: endDate,
|
||||||
breaks: breaks.map((e) => e.toBreak()).toList(),
|
breaks: breaks.map((e) => e.toBreak()).toList(),
|
||||||
|
|
Loading…
Reference in a new issue