Fix global placeholders save crashing with non-serializable error
Template tests / tests (push) Successful in 1m40s

The placeholders:globals:set IPC handler destructured { values } from
its args, but the renderer sends the placeholders object directly,
so values was always undefined and JSON.stringify(undefined) threw.
This commit is contained in:
2026-06-15 18:08:16 -05:00
parent 46d0d622ca
commit c39262c3fa
+1 -1
View File
@@ -485,7 +485,7 @@ function setupIpc() {
return settings.data;
});
h('placeholders:globals:get', () => settings.getGlobalPlaceholders());
h('placeholders:globals:set', ({ values }) => settings.setGlobalPlaceholders(values));
h('placeholders:globals:set', (values) => settings.setGlobalPlaceholders(values));
// capture
h('capture:shoot', async ({ guideId, mode, delayMs }) => {