Skip to content

MaxVisits is set to 0 when value is empty, instead of leaving it as null #193

@acelaya

Description

@acelaya

Shlink web client version

  • Version: 2.3.0
  • How do you use shlink-web-client: All

Summary

When short URL meta is edited and the maxVisits changes from having a value to not having it at all, the value is parsed as int and set to 0, instead of setting it to null, which completely disables the ability to visit this URL.

Current behavior

Setting an empty value in the maxVisits field sets value to 0.

Expected behavior

Setting an empty value in the maxVisits field sets value to null.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions