Skip to content

Instantly share code, notes, and snippets.

@anirudhjain75 anirudhjain75/bug
Created Jun 16, 2019

Embed
What would you like to do?
Error ┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ root/entity/alias/EditForm.js:93:33
Cannot call setState with object literal bound to the first parameter because:
• read-only array type [1] is incompatible with array type [2] in property errors.
• number [3] is incompatible with string [4] in property value.
• string [5] is incompatible with number [6] in property value.
root/entity/alias/EditForm.js
90│ entityType={entityType}
91│ field={state.aliasName}
92│ onChangeInput={(e) => {
93│ return setState({
94│ ...state,
95│ aliasName: {
96│ ...state.aliasName,
97│ value: e.target.value,
98│ },
99│ });
100│ }}
101│ onPressGuessCaseOptions={() => {
102│ const $ = require('jquery');
root/types.js
[2] 481│ errors: Array<string>,
:
[1] 493│ +errors: $ReadOnlyArray<string>,
root/components/FormRowNameWithGuesscase.js
[4] 21│ locale: FieldT<string>,
22│ sortName: FieldT<string>,
[6] 23│ type: FieldT<number>,
root/components/FormRowSelect.js
[3][5] 21│ +field: ReadOnlyFieldT<number | string>,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.