mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-20 13:43:43 +02:00
fix: remove userId null error in AvailabilityViewModel
This commit is contained in:
parent
b28dd819e7
commit
a5c46a00aa
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