Bug fix
This commit is contained in:
parent
fb2ae39b47
commit
65b1daa52c
4
api.go
4
api.go
@ -134,6 +134,10 @@ func (a *Agate) SaveSnapshot(ctx context.Context, name string, parentID string)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// If parentID is not provided, use the current snapshot ID
|
// If parentID is not provided, use the current snapshot ID
|
||||||
|
if parentID == "" {
|
||||||
|
parentID = a.currentSnapshotID
|
||||||
|
}
|
||||||
|
|
||||||
effectiveParentID := parentID
|
effectiveParentID := parentID
|
||||||
|
|
||||||
// Create the snapshot
|
// Create the snapshot
|
||||||
|
Loading…
Reference in New Issue
Block a user