Skip to content

Commit

Permalink
Do not create entities with blank labels
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Nov 21, 2024
1 parent aabe31a commit 7d09fb7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ object LocalEntityUseCases {
if (id != null) {
when (formEntity.action) {
EntityAction.CREATE -> {
if (!label.isNullOrEmpty()) {
if (!label.isNullOrBlank()) {
val entity = Entity.New(
id,
label,
Expand Down

0 comments on commit 7d09fb7

Please # to comment.