diff options
-rw-r--r-- | cmd/sklad/db.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/sklad/db.go b/cmd/sklad/db.go index 262a164..b58a5f2 100644 --- a/cmd/sklad/db.go +++ b/cmd/sklad/db.go @@ -225,7 +225,7 @@ func dbContainerUpdate(c *Container, updated Container) error { } indexChildren[c.Parent] = filterContainer(indexChildren[c.Parent], c) - indexChildren[newID] = append(indexChildren[newID], c) + indexChildren[updated.Parent] = append(indexChildren[updated.Parent], c) } *c = updated return dbCommit() |