From de7ad30bdbe75de673966170190d24373f788d65 Mon Sep 17 00:00:00 2001 From: cha0s Date: Tue, 30 Jun 2020 07:00:01 -0500 Subject: [PATCH] chore: redundant --- src/common/resources/entity/state.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/common/resources/entity/state.js b/src/common/resources/entity/state.js index 17b0a63..a885871 100644 --- a/src/common/resources/entity/state.js +++ b/src/common/resources/entity/state.js @@ -80,11 +80,7 @@ const slice = createSlice({ value, }, }) => { - const {traits} = state.entities[target]; - traits[trait] = traits[trait] || {}; - traits[trait][half] = traits[trait][half] || {}; - traits[trait][half][key] = value; - state.entities[target].traits = traits; + state.entities[target].traits[trait][half][key] = value; }, }, extraReducers: {