Fixed some bugs

This commit is contained in:
Juan Gilsanz Polo 2024-09-11 22:32:26 +02:00
parent 7579e2d580
commit 7bb7ad40c4
8 changed files with 28 additions and 15 deletions

View file

@ -138,7 +138,7 @@ class _StatisticsSettingsState extends State<StatisticsSettings> {
"enabled": _generalSwitch,
"interval": _retentionTime == "custom"
? Duration(hours: int.parse(_customTimeController.text)).inMilliseconds
: int.parse(_retentionTime!),
: int.parse(_retentionTime ?? _retentionItems[0]),
"ignored": _ignoredDomainsControllers.map((e) => e.controller.text).toList()
}
);