Skip to content

Instantly share code, notes, and snippets.

@anirudhjain75
Created July 8, 2019 17:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anirudhjain75/fdf8e14eb962a2d40b509cad6d9238c1 to your computer and use it in GitHub Desktop.
Save anirudhjain75/fdf8e14eb962a2d40b509cad6d9238c1 to your computer and use it in GitHub Desktop.
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,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment