Thanks to visit codestin.com Credit goes to github.com
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 e10576e commit 7a4628cCopy full SHA for 7a4628c
src/reducers/ast.js
@@ -183,8 +183,9 @@ export function getPreview(state: OuterState) {
183
return state.ast.get("preview");
184
}
185
186
+const emptySourceMetaData = {};
187
export function getSourceMetaData(state: OuterState, sourceId: string) {
- return state.ast.getIn(["sourceMetaData", sourceId]) || {};
188
+ return state.ast.getIn(["sourceMetaData", sourceId]) || emptySourceMetaData;
189
190
191
export default update;
0 commit comments