Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Rule Item Form Maximum call stack size exceeded #221

Open
HubertChen1 opened this issue Feb 21, 2024 · 2 comments
Open

[Bug]: Rule Item Form Maximum call stack size exceeded #221

HubertChen1 opened this issue Feb 21, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@HubertChen1
Copy link

What happened?

For rule schemas, the rule items cannot be viewed in a form when selected. EX. ICE
Screenshot 2024-02-21 at 12 05 39 PM

What package(s) are causing the problem?

No response

What browsers are you seeing the problem on?

No response

Relevant log output

Unexpected Application Error!
Maximum call stack size exceeded
RangeError: Maximum call stack size exceeded
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132158)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
    at $r (https://ccs-claims-dv1.geico.net/vendors.js:8:132242)
@HubertChen1 HubertChen1 added the bug Something isn't working label Feb 21, 2024
@Reneechen108
Copy link

Here is the schema

{
  "$schema": "https://json-schema.org/draft/2019-09/schema",
  "$id": "https://example.com/1794-example.schema.json",
  "title": "Predicate Engine",
  "type": "object",
  "required": ["listNode", "defaultValue"],
  "properties": {
    "listNode": {
      "title": "Rule Set",
      "$ref": "#/$defs/ListNode"
    },
    "defaultValue": {
      "title": "Default Value",
      "type": "string"
    }
  },
  "$defs": {
    "Node": {
      "title": "Node",
      "type": "object",
      "properties": {
        "exactStringMatchNode": {
          "$ref": "#/$defs/ExactStringMatchNode"
        },
        "terminalNode": {
          "$ref": "#/$defs/TerminalNode"
        }
      }
    },
    "ListNode": {
      "title": "List Node",
      "type": "array",
      "items": {
        "title": "Node",
        "$ref": "#/$defs/Node"
      }
    },
    "ExactStringMatchNode": {
      "title": "String Match Node",
      "type": "object",
      "required": ["factKey", "targetValue"],
      "properties": {
        "factKey": {
          "title": "Input Field",
          "type": "string"
        },
        "targetValue": {
          "title": "Match Value",
          "type": "string"
        },
        "next": {
          "title": "Next",
          "$ref": "#/$defs/Node"
        }
      }
    },
    "TerminalNode": {
      "title": "List Node",
      "type": "object",
      "required": ["result"],
      "properties": {
        "result": {
          "title": "Result",
          "type": "string"
        }
      }
    }
  }
}

@janechu
Copy link
Owner

janechu commented Mar 21, 2024

Thanks @Reneechen108, investigating.

@janechu janechu self-assigned this Mar 21, 2024
@janechu janechu moved this to Todo in Design to Code Mar 21, 2024
@janechu janechu moved this from Todo to In Progress in Design to Code Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Progress
Development

No branches or pull requests

3 participants