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,
|
||||||
_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: []
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue