anirudhjain75
7/8/2019 - 5:18 PM

errorlog

Cannot create AddRemoveAlias element because:
 • number [1] is incompatible with string [2] in property
   edit.display_data.locale.
 • inexact null [3] is incompatible with exact OptionTreeT [4] in property
   edit.display_data.type.
 • property child_order is missing in object literal [5] but exists in
   OptionTreeT [4] in property edit.display_data.type.
 • property description is missing in object literal [5] but exists in
   OptionTreeT [4] in property edit.display_data.type.
 • property entityType is missing in object literal [5] but exists in
   OptionTreeT [4] in property edit.display_data.type.
 • property gid is missing in object literal [5] but exists in OptionTreeT [4]
   in property edit.display_data.type.
 • property id is missing in object literal [5] but exists in OptionTreeT [4]
   in property edit.display_data.type.
 • property parent_id is missing in object literal [5] but exists in
   OptionTreeT [4] in property edit.display_data.type.
 • function type [6] is incompatible with string [7] in property
   edit.display_data.type.name.
 • undefined [8] is incompatible with string [9] in property edit.edit_kind.

        root/entity/alias/EditForm.js
    [8]  25│   editKind?: string,
           :
 [3][5] 128│     return (type.length === 0 ? null : {
        129│       name: type[0].label,
        130│     });
           :
        399│           <fieldset>
        400│             <legend>{l('Changes')}</legend>
        401│             {editKind === 'add'
        402│               ? <AddRemoveAlias edit={generateAddPreviewData()} />
        403│               : <EditAlias edit={generateEditPreviewData()}/>
        404│             }
        405│           </fieldset>

        root/types.js
    [7] 685│   +name: string,
           :
    [6] 899│   +label: string | (() => string),

        root/components/FormRowSelect.js
    [1]  21│   +field: ReadOnlyFieldT<number | string>,

        root/edit/details/AddRemoveAlias.js
    [2]  30│     locale: string,
         31│     primary_for_locale: boolean,
         32│     sort_name: string,
    [4]  33│     type: OptionTreeT<empty>,
         34│   },
    [9]  35│   edit_kind: string,