This commit is contained in:
kandrusyak
2022-08-22 15:46:39 +03:00
parent 841e82e233
commit 49f3ee17a0
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
"name": "mosaic-react", "name": "mosaic-react",
"version": "0.1.0", "version": "0.1.0",
"scripts": { "scripts": {
"dev": "webpack-dev-server", "dev": "webpack-dev-server --https",
"build:dev": "webpack --mode development --progress", "build:dev": "webpack --mode development --progress",
"build:prod": "webpack --mode production --progress" "build:prod": "webpack --mode production --progress"
}, },

View File

@@ -59,7 +59,7 @@ export const hashAccountData = (data = [], oldData = [], hashMap = {}) => {
}), {}) }), {})
const removed = oldData.reduce((acc, item) => { const removed = oldData.reduce((acc, item) => {
if(!accountMap[item.label]) if(!accountMap[item.label] && hashMap[item.label])
return [...acc, {label: item.label}]; return [...acc, {label: item.label}];
return acc return acc
}, []) }, [])