mirror of
https://github.com/Iconica-Development/flutter_availability.git
synced 2025-05-19 13:13:44 +02:00
fix: save selected template id with created availabilities
This commit is contained in:
parent
57e8716913
commit
5b98ae487b
1 changed files with 3 additions and 0 deletions
|
@ -130,6 +130,9 @@ class _AvailabilitiesModificationScreenState
|
||||||
if (template != null) {
|
if (template != null) {
|
||||||
setState(() {
|
setState(() {
|
||||||
_selectedTemplates = [template];
|
_selectedTemplates = [template];
|
||||||
|
_availability = _availability.copyWith(
|
||||||
|
templateId: template.id,
|
||||||
|
);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue