Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
AStA
AStAPrint Admin Business Logic
Commits
3bddd56f
Commit
3bddd56f
authored
Apr 24, 2022
by
Leon Tappe
🔥
Browse files
fix broken state on empty value lists
parent
3790e14b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/src/common.dart
View file @
3bddd56f
...
...
@@ -48,7 +48,8 @@ abstract class ResultState<T> extends CommonState {
};
Map
<
String
,
dynamic
>
get
toShortMap
=>
{
'value'
:
value
is
Iterable
?
(
value
as
Iterable
).
last
:
value
,
'value'
:
value
is
Iterable
&&
(
value
as
Iterable
).
isNotEmpty
?
(
value
as
Iterable
).
last
:
value
,
...
super
.
toMap
,
};
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment