Skip to content

Commit

Permalink
Temp: TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lordrip committed Jan 8, 2025
1 parent d502ff9 commit b1babb3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ui/src/utils/update-kamelet-from-custom-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export const updateKameletFromCustomSchema = (kamelet: IKameletDefinition, value
setValue(kamelet, 'metadata.annotations', newAnnotations);

const propertiesArray: IKameletCustomProperty[] = getValue(value, 'kameletProperties');
// TODO: When deleting the content of the property name, it turns into `undefined` instead of being removed
// TODO: Check how can we skip this issue
const newProperties = propertiesArray?.reduce(
(acc, property) => {
if (property !== undefined) {
Expand Down

0 comments on commit b1babb3

Please sign in to comment.