mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-05 00:03:08 +00:00
fix(frontend): Fix id generation when a second action (#1110)
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
const { selectedComponent, staticOutputs } = getContext<AppEditorContext>('AppEditorContext')
|
||||
|
||||
function addComponent() {
|
||||
const actionId = getNextId(components.map((x) => x.id.split('-')[1]))
|
||||
const actionId = getNextId(components.map((x) => x.id.split('_')[1]))
|
||||
|
||||
const newComponent: BaseAppComponent & ButtonComponent = {
|
||||
id: `${id}_${actionId}`,
|
||||
|
||||
Reference in New Issue
Block a user