Cannot create segment if filter definition has no parameter

Found in

EPiServer.Profiles.Client 1.13.0

Fixed in

EPiServer.Profiles.Client 1.13.1

Created

Dec 10, 2019

Updated

Jan 24, 2020

State

Closed, Fixed and tested


Description

  • Precondition: There is an existing filter definition as below

{
            "Id": "fd_First10Events",
            "Name": "First10Events",
            "Description": "Get 10 first events",
            "Query": "Events| order by EventTime desc| take 10",
            "Parameters": null,
            "Category": "TopEvents",
            "Type": "Events"
}

Steps to reproduce

  1. Install the Insight.UI package on the website.
  2. Go to Insight-> Segments.
  3. Click the Create a segment button.
  4. Select the category "TopEvents".
  5. Select the filter named "Get 10 first events"

Actual:
An error window with the text "TypeError: can't convert null to object".

Expected:
User can create a segment as normal.