add default children to files client side
This commit is contained in:
parent
01ad5611c6
commit
336be41b09
1 changed files with 6 additions and 3 deletions
|
@ -51,21 +51,24 @@ function initialState() {
|
|||
id: a,
|
||||
_id: a,
|
||||
isSelected: true,
|
||||
fileType: 'file'
|
||||
fileType: 'file',
|
||||
children: []
|
||||
},
|
||||
{
|
||||
name: 'index.html',
|
||||
content: defaultHTML,
|
||||
id: b,
|
||||
_id: b,
|
||||
fileType: 'file'
|
||||
fileType: 'file',
|
||||
children: []
|
||||
},
|
||||
{
|
||||
name: 'style.css',
|
||||
content: defaultCSS,
|
||||
id: c,
|
||||
_id: c,
|
||||
fileType: 'file'
|
||||
fileType: 'file',
|
||||
children: []
|
||||
}];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue