mirror of
https://github.com/lana-k/sqliteviz.git
synced 2026-03-24 23:16:18 +08:00
fix tests
This commit is contained in:
@@ -30,14 +30,16 @@ export default {
|
||||
let inquiryIndex
|
||||
// Set createdAt
|
||||
if (newName) {
|
||||
value.createdAt = new Date()
|
||||
value.createdAt = new Date().toJSON()
|
||||
} else {
|
||||
inquiryIndex = myInquiries.findIndex(
|
||||
oldInquiry => oldInquiry.id === inquiryTab.id
|
||||
)
|
||||
|
||||
value.createdAt =
|
||||
inquiryIndex !== -1 ? myInquiries[inquiryIndex].createdAt : new Date()
|
||||
inquiryIndex !== -1
|
||||
? myInquiries[inquiryIndex].createdAt
|
||||
: new Date().toJSON()
|
||||
}
|
||||
|
||||
// Insert in inquiries list
|
||||
|
||||
Reference in New Issue
Block a user