anirudhjain75
7/8/2019 - 5:40 PM

errorlog2

Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ root/entity/alias/EditForm.js:403:34

Cannot create EditAlias element because:
 • property close_time is missing in object literal [1] but exists in Props [2] in property edit.
 • property conditions is missing in object literal [1] but exists in Props [2] in property edit.
 • property created_time is missing in object literal [1] but exists in Props [2] in property edit.
 • property data is missing in object literal [1] but exists in Props [2] in property edit.
 • property edit_type is missing in object literal [1] but exists in Props [2] in property edit.
 • property editor_id is missing in object literal [1] but exists in Props [2] in property edit.
 • property expires_time is missing in object literal [1] but exists in Props [2] in property edit.
 • property id is missing in object literal [1] but exists in Props [2] in property edit.
 • property quality is missing in object literal [1] but exists in Props [2] in property edit.
 • property status is missing in object literal [1] but exists in Props [2] in property edit.
 • property votes is missing in object literal [1] but exists in Props [2] in property edit.
 • number [3] is incompatible with string [4] in property edit.alias.locale.
 • property artist is missing in object literal [5] but exists in DisplayDataT [6] in property edit.display_data.
 • boolean [7] is incompatible with string [8] in property edit.display_data.alias.new.
 • boolean [9] is incompatible with string [8] in property edit.display_data.alias.new.
 • number [3] is incompatible with string [8] in property edit.display_data.alias.new.
 • null [10] is incompatible with string [8] in property edit.display_data.alias.new.
 • object literal [11] is incompatible with string [8] in property edit.display_data.alias.new.
 • object literal [12] is incompatible with string [8] in property edit.display_data.alias.new.
 • object literal [13] is incompatible with string [8] in property edit.display_data.alias.new.
 • boolean [7] is incompatible with string [14] in property edit.display_data.alias.old.
 • boolean [9] is incompatible with string [14] in property edit.display_data.alias.old.
 • null [10] is incompatible with string [14] in property edit.display_data.alias.old.
 • object literal [11] is incompatible with string [14] in property edit.display_data.alias.old.
 • object literal [15] is incompatible with string [14] in property edit.display_data.alias.old.
 • object literal [16] is incompatible with string [14] in property edit.display_data.alias.old.
 • inexact string [8] is incompatible with exact PartialDateT [17] in property edit.display_data.begin_date.new.
 • inexact string [14] is incompatible with exact PartialDateT [18] in property edit.display_data.begin_date.old.
 • PartialDateT [17] is incompatible with boolean [19] in property edit.display_data.ended.new.
 • PartialDateT [18] is incompatible with boolean [20] in property edit.display_data.ended.old.
 • boolean [19] is incompatible with string [8] in property edit.display_data.locale.new.
 • boolean [20] is incompatible with string [14] in property edit.display_data.locale.old.
 • string [8] is incompatible with boolean [19] in property edit.display_data.primary_for_locale.new.
 • string [14] is incompatible with boolean [20] in property edit.display_data.primary_for_locale.old.
 • string [8] is incompatible with OnlyNameT [21] in property edit.display_data.type.new.
 • string [14] is incompatible with OnlyNameT [22] in property edit.display_data.type.old.
 • undefined [23] is incompatible with string [24] in property edit.edit_kind.

          root/entity/alias/EditForm.js
     [23]  25│   editKind?: string,
             :
 [10][11] 128│     return (type.length === 0 ? null : {
          129│       name: type[0].label,
          130│     });
             :
      [1] 145│     const edit = {
          146│       alias: {
          147│         ended: ended.value,
          148│         locale: locale.value,
          149│         name: aliasName.value,
          150│         primary_for_locale: primaryForLocale.value,
          151│         sort_name: sortName.value,
          152│         typeID: entityTypeId.value,
          153│       },
      [5] 154│       display_data: {
          155│         alias: objectCreatorWithOldNewProperty(
          156│           form.field.name.value, aliasName.value,
          157│         ),
     [15] 158│         begin_date: objectCreatorWithOldNewProperty({
          159│           day: refractorDate('begin_date').field.day.value,
          160│           month: refractorDate('begin_date').field.month.value,
          161│           year: refractorDate('begin_date').field.year.value,
     [12] 162│         }, {
          163│           day: beginDate.field.day.value,
          164│           month: beginDate.field.month.value,
          165│           year: beginDate.field.year.value,
          166│         }),
     [16] 167│         end_date: objectCreatorWithOldNewProperty({
          168│           day: refractorDate('end_date').field.day.value,
          169│           month: refractorDate('end_date').field.month.value,
          170│           year: refractorDate('end_date').field.year.value,
     [13] 171│         }, {
          172│           day: endDate.field.day.value,
          173│           month: endDate.field.month.value,
          174│           year: endDate.field.year.value,
          175│         }),
          176│         ended: objectCreatorWithOldNewProperty(
          177│           form.field.period.field.ended.value, ended.value,
          178│         ),
          179│         entity_type: entityType,
          180│         locale: objectCreatorWithOldNewProperty(
          181│           form.field.locale.value, locale.value,
          182│         ),
          183│         primary_for_locale: objectCreatorWithOldNewProperty(
          184│           form.field.primary_for_locale.value, primaryForLocale.value,
          185│         ),
          186│         sort_name: objectCreatorWithOldNewProperty(
          187│           form.field.sort_name.value, sortName.value,
          188│         ),
          189│         type: objectCreatorWithOldNewProperty(
          190│           typeUsed(form.field.type_id.value), typeUsed(entityTypeId.value),
          191│         ),
          192│       },
          193│       edit_kind: editKind,
          194│     };
             :
          400│             <legend>{l('Changes')}</legend>
          401│             {editKind === 'add'
          402│               ? <AddRemoveAlias edit={generateAddPreviewData()} />
          403│               : <EditAlias edit={generateEditPreviewData()}/>
          404│             }
          405│           </fieldset>
          406│           <EnterEditNote field={form.field.edit_note} hideHelp />

          root/types.js
      [7]  33│         ended: FieldT<boolean>,
             :
      [9]  38│     primary_for_locale: FieldT<boolean>,
             :
     [24] 443│   +edit_kind: string,

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

          root/edit/details/EditAlias.js
      [8]  17│   new: string,
     [14]  18│   old: string,
           19│ };
           20│
           21│ type BoolCompT = {
     [19]  22│   new: boolean,
     [20]  23│   old: boolean,
           24│ };
           25│
           26│ type DateCompT = {
     [17]  27│   new: PartialDateT,
     [18]  28│   old: PartialDateT,
             :
     [21]  46│     new: OnlyNameT,
     [22]  47│     old: OnlyNameT,
             :
      [4]  52│   locale: string,
             :
      [6]  60│   display_data: DisplayDataT,
           61│ };
           62│
      [2]  63│ const EditAlias = ({edit}: {edit: Props}) => {