Skip to content

Commit 2a8ecd9

Browse files
committed
Fixed: local tasks with variables show an error when the html is loaded in the task list
1 parent 791c30a commit 2a8ecd9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/management-system-v2/components/guest-warning-button.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const GuestWarningButton = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivElem
1919
footer: null,
2020
icon: null,
2121
styles: {
22-
content: {
22+
container: {
2323
background: token.colorWarningBg,
2424
borderColor: token.colorWarningBorder,
2525
padding: '8px 12px',

src/management-system-v2/lib/engines/server-actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ export async function getTasklistEntryHTML(
336336

337337
// maps relative urls used to get resources on the engine to the MS api to allow them to work here as well
338338
function mapResourceUrls(variables: Record<string, any>) {
339-
if (!variables) return variables;
339+
if (!variables || !engine) return variables;
340340

341341
return Object.fromEntries(
342342
Object.entries(variables).map(([key, value]) => {

0 commit comments

Comments
 (0)