Revert "Fix object is possibly undefined error"
This reverts commit 90dcb54bba.
This commit is contained in:
parent
c39b66bce2
commit
56fb881edd
1 changed files with 2 additions and 2 deletions
|
|
@ -66,8 +66,8 @@ const CharacterGrid = (props: Props) => {
|
||||||
// Initialize an array of current uncap values for each characters
|
// Initialize an array of current uncap values for each characters
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
let initialPreviousUncapValues: { [key: number]: number } = {}
|
let initialPreviousUncapValues: { [key: number]: number } = {}
|
||||||
Object.values(appState.grid.characters).map((o) =>
|
Object.values(appState.grid.characters).map(
|
||||||
o ? (initialPreviousUncapValues[o.position] = o.uncap_level) : null
|
(o) => (initialPreviousUncapValues[o.position] = o.uncap_level)
|
||||||
)
|
)
|
||||||
setPreviousUncapValues(initialPreviousUncapValues)
|
setPreviousUncapValues(initialPreviousUncapValues)
|
||||||
}, [appState.grid.characters])
|
}, [appState.grid.characters])
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue