add default children to files client side

This commit is contained in:
catarak 2016-09-03 20:31:34 -04:00
parent 01ad5611c6
commit 336be41b09

View file

@ -51,21 +51,24 @@ function initialState() {
id: a, id: a,
_id: a, _id: a,
isSelected: true, isSelected: true,
fileType: 'file' fileType: 'file',
children: []
}, },
{ {
name: 'index.html', name: 'index.html',
content: defaultHTML, content: defaultHTML,
id: b, id: b,
_id: b, _id: b,
fileType: 'file' fileType: 'file',
children: []
}, },
{ {
name: 'style.css', name: 'style.css',
content: defaultCSS, content: defaultCSS,
id: c, id: c,
_id: c, _id: c,
fileType: 'file' fileType: 'file',
children: []
}]; }];
} }