diff --git a/backend/src/jobs.rs b/backend/src/jobs.rs index d4b08db748..4e9eeb33ac 100644 --- a/backend/src/jobs.rs +++ b/backend/src/jobs.rs @@ -1215,10 +1215,10 @@ pub async fn push<'c>( { let s: String; let audit_o = match job_kind { - JobKind::Preview => { - s = format!("preview {:?}", script_path); - Some(("jobs.run.preview", Some(s))) - } + JobKind::Preview => Some(( + "jobs.run.preview", + Some(format!("{}", script_path.unwrap_or_else(String::new))), + )), JobKind::Script => { s = ScriptHash(script_hash.unwrap()).to_string(); hm.insert("hash", s.as_str()); diff --git a/frontend/src/lib/components/VariableEditor.svelte b/frontend/src/lib/components/VariableEditor.svelte index 6fb83c2446..d79531a7d3 100644 --- a/frontend/src/lib/components/VariableEditor.svelte +++ b/frontend/src/lib/components/VariableEditor.svelte @@ -8,6 +8,7 @@ import { createEventDispatcher } from 'svelte' import { workspaceStore } from '$lib/stores' import Required from './Required.svelte' + import Tooltip from './Tooltip.svelte' const dispatch = createEventDispatcher() @@ -135,6 +136,18 @@