mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 09:46:22 +00:00
add initialization modal & migration func
This commit is contained in:
@@ -208,7 +208,7 @@ class StorageItem extends React.Component {
|
||||
let { storage } = this.props
|
||||
let input = {
|
||||
name: 'Untitled',
|
||||
color: consts.FOLDER_COLORS[Math.floor(Math.random() * 7)]
|
||||
color: consts.FOLDER_COLORS[Math.floor(Math.random() * 7) % 7]
|
||||
}
|
||||
|
||||
dataApi.createFolder(storage.key, input)
|
||||
|
||||
Reference in New Issue
Block a user