diff --git a/docs/components/configuration.jsx b/docs/components/configuration.jsx index a3cf7ae0..15e2be3c 100644 --- a/docs/components/configuration.jsx +++ b/docs/components/configuration.jsx @@ -19,8 +19,9 @@ export function Configuration() { const hasFilterIndex = currentStages.filters?.findIndex( (s) => s.type == stage.type ); + console.log(hasFilterIndex) - if (hasFilterIndex && hasFilterIndex != -1) { + if (hasFilterIndex != undefined && hasFilterIndex != -1) { currentStages.filters[hasFilterIndex] = stage; } else { currentStages.filters = currentStages.filters?.concat(stage) || [stage]; @@ -174,7 +175,7 @@ export function Configuration() { -
+