We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84700ea commit 9cc9627Copy full SHA for 9cc9627
dash/dash-renderer/src/reducers/loading.ts
@@ -1,4 +1,4 @@
1
-import {assocPath, includes, pathOr, without} from 'ramda';
+import {assocPath, includes, pathOr} from 'ramda';
2
3
import {LoadingPayload} from '../actions/loading';
4
@@ -20,7 +20,13 @@ export default function loading(
20
return action.payload.reduce((acc, load) => {
21
const loadPath = [JSON.stringify(load.path)];
22
const prev = pathOr<any>([], loadPath, acc);
23
- return assocPath(loadPath, without(prev, [load]), acc);
+ return assocPath(
24
+ loadPath,
25
+ prev.filter(
26
+ (loading: any) => loading.property !== load.property
27
+ ),
28
+ acc
29
+ );
30
}, state);
31
case 'LOADING':
32
0 commit comments