Skip to content

WIP: Correct Data Object Coming in As String

Emily Jensen requested to merge 38-css-fix into master

Problem

  • The data value in entry request was coming in as a string: string

Solution

  • Add an option to parse JSON data that is a string
  • Create a test
  • Had to add number to the data types for app entry data, I think because of the JSON.parse that I added. Otherwise, I get this error:
 ERROR in src/app/issues/issue-detail/event-detail/entry-request/entry-request.component.html:18:11 - error TS2322: Type 'number' is not assignable to type 'string'.
    
    18           [key]="requestData.key"
                 ~~~~~~~~~~~~~~~~~~~~~~~
    
      src/app/issues/issue-detail/event-detail/entry-request/entry-request.component.ts:6:16
        6   templateUrl: "./entry-request.component.html",
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        Error occurs in the template of component EntryRequestComponent.

Scope Creep

  • Also updated CSP Error to CSP Report

Closes #38

Edited by Emily Jensen

Merge request reports