fix: guard workflow names against blanks and collisions
- refuse blank or duplicate spec names and duplicate step ids, with inline errors - offer a payload path for every array item in event previews, not just the first three - trim multiline step settings and apply them on change
This commit is contained in:
8 files changed
+65
-9
No files matched your search
@@ -99,7 +99,8 @@ function commitRename(event: Event): void {
|
||||
.toLowerCase()
|
||||
.replace(/[^a-z0-9]+/g, "-")
|
||||
.replace(/^[^a-z]+|-+$/g, "");
|
||||
if (name !== (props.data.name ?? "")) props.data.onRename?.(name);
|
||||
// Nothing usable typed keeps the current id rather than dropping it.
|
||||
if (name && name !== (props.data.name ?? "")) props.data.onRename?.(name);
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in new issue
Block a user