Skip to content

Commit

Permalink
⭐ map value to string (#686)
Browse files Browse the repository at this point in the history
  • Loading branch information
petar-cvit authored Nov 21, 2024
1 parent 5056c0e commit c5af027
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions cyclops-ctrl/config/crd/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# It should be run by config/default
resources:
- bases/cyclops-ui.com_modules.yaml
- bases/cyclops-ui.com_templateauthrules.yaml
- bases/cyclops-ui.com_templatestores.yaml
#+kubebuilder:scaffold:crdkustomizeresource

patchesStrategicMerge:
Expand Down
1 change: 0 additions & 1 deletion cyclops-ui/src/components/pages/EditModule/EditModule.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,6 @@ const EditModule = () => {
setValues(values);
setPreviousValues(res.data.values);
} else {
console.log(result);
setError(result.error);
}

Expand Down
2 changes: 1 addition & 1 deletion cyclops-ui/src/utils/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ export function findMaps(fields: any[], values: any, initialValues: any): any {

let object: any = {};
valuesList.forEach((valueFromList) => {
object[valueFromList.key] = YAML.parse(valueFromList.value);
object[valueFromList.key] = YAML.parse(String(valueFromList.value));
});
out[field.name] = object;
break;
Expand Down

0 comments on commit c5af027

Please sign in to comment.