Skip to content

Commit 0ea0a4d

Browse files
authored
Merge pull request #7 from oslabs-beta/declarative-title-bug
bug fix for undefined deltas
2 parents 5d36c15 + 76d9a5e commit 0ea0a4d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/containers/ActionContainer.jsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ function ActionContainer() {
2121
if (snapshots.length > 0) {
2222
// breadth first function - take in an delta obj
2323
function breadthFirst(delta) {
24+
if (delta === undefined) return '';
2425
// aux array = current and one called next
2526
let current = Object.values(delta.children); // Object.keys(delta.children);
2627
let next = [];

0 commit comments

Comments
 (0)