Skip to content

Commit fc531b7

Browse files
committed
opting for prop adjustment on callback instead of Loading
1 parent 3e2155a commit fc531b7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

components/dash-core-components/src/components/Loading.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ const loadingSelector = (componentPath, targetComponents) => state => {
4545
return false;
4646
}
4747
if (Array.isArray(target)) {
48-
return includes(l.property.split('@')[0], target);
48+
return includes(l.property, target);
4949
}
50-
return l.property.split('@')[0] === target;
50+
return l.property === target;
5151
}, load)
5252
) {
5353
return acc;

dash/dash-renderer/src/actions/callbacks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ export function executeCallback(
748748
const __execute = async (): Promise<CallbackResult> => {
749749
const loadingOutputs = outputs.map(out => ({
750750
path: getPath(paths, out.id),
751-
property: out.property,
751+
property: out.property.split('@')[0],
752752
id: out.id
753753
}));
754754
dispatch(loading(loadingOutputs));

0 commit comments

Comments
 (0)