fix: preserve block_id across save/load and API save_preset/save_snapshot endpoints
CI / test (push) Has been cancelled
CI / test (push) Has been cancelled
This commit is contained in:
@@ -634,6 +634,7 @@ class WebServer:
|
||||
params=b.get("params", {}),
|
||||
nam_model_path=b.get("nam_model_path", ""),
|
||||
ir_file_path=b.get("ir_file_path", ""),
|
||||
block_id=b.get("block_id", ""),
|
||||
))
|
||||
preset = Preset(
|
||||
name=data.get("name", f"Preset {bank}-{program}"),
|
||||
@@ -752,6 +753,7 @@ class WebServer:
|
||||
params=dict(bd.get("params", {})),
|
||||
nam_model_path=bd.get("nam_model_path", ""),
|
||||
ir_file_path=bd.get("ir_file_path", ""),
|
||||
block_id=bd.get("block_id", ""),
|
||||
)
|
||||
)
|
||||
preset.snapshots[slot] = SnapModel(
|
||||
|
||||
Reference in New Issue
Block a user