1
0

Fix saving showing archived setting

This commit is contained in:
kolaente
2021-06-03 15:31:39 +02:00
parent 0f42ed3cf7
commit 4a3b4982ab
4 changed files with 51 additions and 8 deletions

View File

@ -21,7 +21,7 @@ export class Factory {
* @param override
* @returns {[]}
*/
static create(count = 1, override = {}) {
static create(count = 1, override = {}, truncate = true) {
const data = []
for (let i = 1; i <= count; i++) {
@ -38,7 +38,7 @@ export class Factory {
data.push(entry)
}
seed(this.table, data)
seed(this.table, data, truncate)
return data
}