diff --git a/client/coral-framework/hocs/withFragments.js b/client/coral-framework/hocs/withFragments.js index 33c39abd0..e6aca318a 100644 --- a/client/coral-framework/hocs/withFragments.js +++ b/client/coral-framework/hocs/withFragments.js @@ -30,7 +30,9 @@ function filterProps(props, fragments) { if (!(key in props)) { return; } - filtered[key] = filter(fragments[key], props[key], props.data.variables); + filtered[key] = props.data + ? filter(fragments[key], props[key], props.data.variables) + : props[key]; }); return filtered; }