From 69d0d7124fe604b07b89228f70197406c86ebf00 Mon Sep 17 00:00:00 2001 From: oliver Date: Tue, 8 Sep 2026 16:45:47 +0800 Subject: [PATCH] Fix JobEditor crash: pass viewer into CwdField. CwdField required viewer.canViewAll but JobEditor never received the prop, so opening cron mode threw ReferenceError and blanked the UI. Co-authored-by: Cursor --- lib/client.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/client.js b/lib/client.js index 0fd9df8..4d6ac1b 100644 --- a/lib/client.js +++ b/lib/client.js @@ -1081,7 +1081,7 @@ body>.dsh-ct-main{position:fixed;top:0;right:0;bottom:0;left:var(--dsh-ct-sideba ) } - function JobEditor({ t, form, setForm, isNew, error, lastOutput, nextRunAt, lastRunAt, workspaces, catalog, presets, imCatalog, onSave, onRun, onPause, onRemove }) { + function JobEditor({ t, form, setForm, isNew, error, lastOutput, nextRunAt, lastRunAt, workspaces, catalog, presets, imCatalog, viewer, onSave, onRun, onPause, onRemove }) { return h('div', { className: 'dsh-ct-editor' }, h('h1', null, isNew ? t('newJob') : (form.name || t('title'))), h('p', { className: 'dsh-ct-editorLead' }, t('editorLead')), @@ -1422,6 +1422,7 @@ body>.dsh-ct-main{position:fixed;top:0;right:0;bottom:0;left:var(--dsh-ct-sideba catalog, presets, imCatalog, + viewer, onSave: save, onRun: () => selection.jobId && run(selection.jobId), onPause: () => {