Skip to content

Commit 9f6da36

Browse files
committed
filter out tags that are empty or just whitespace
1 parent b5e19ff commit 9f6da36

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

apps/webapp/app/runEngine/services/triggerTask.server.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,11 +286,13 @@ export class RunEngineTriggerTaskService {
286286
)
287287
: undefined;
288288

289-
const tags = body.options?.tags
290-
? typeof body.options.tags === "string"
291-
? [body.options.tags]
292-
: body.options.tags
293-
: [];
289+
const tags = (
290+
body.options?.tags
291+
? typeof body.options.tags === "string"
292+
? [body.options.tags]
293+
: body.options.tags
294+
: []
295+
).filter((tag) => tag.trim().length > 0);
294296

295297
const depth = parentRun ? parentRun.depth + 1 : 0;
296298

0 commit comments

Comments
 (0)