include diagram config in hash
This commit is contained in:
parent
9ac7f3d0db
commit
366696ad05
1 changed files with 8 additions and 0 deletions
|
|
@ -83,6 +83,14 @@ func (diagram Diagram) Bytes() ([]byte, error) {
|
|||
}
|
||||
base := append(b1, b2...)
|
||||
|
||||
if diagram.Config != nil {
|
||||
b, err := json.Marshal(diagram.Config)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
base = append(base, b...)
|
||||
}
|
||||
|
||||
for _, d := range diagram.Layers {
|
||||
slices, err := d.Bytes()
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Reference in a new issue