Skip to content

Commit

Permalink
fix customTime
Browse files Browse the repository at this point in the history
  • Loading branch information
oussama Dahmaz authored and oussama Dahmaz committed Aug 8, 2024
1 parent 8a1d7cb commit f045d96
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions libs/domain/plugins/src/lib/service/plugin-form.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ export const getFromInitialValues = (
case PluginConfigurationSchemaType.Boolean:
case PluginConfigurationSchemaType.Decimal:
case PluginConfigurationSchemaType.Enum:
case PluginConfigurationSchemaType.CustomTime:
newInitialValues[key] = {
...field,
value: field.defaultValue ?? field.value,
Expand Down Expand Up @@ -235,6 +236,13 @@ export const getNestedSectionFields = (
field: field,
});
break;
case PluginConfigurationSchemaType.CustomTime:
newInitialValues.push({
key: key,
path: `${parentKey}.content.${key}.value`,
field: field,
});
break;
default:
newInitialValues.push({
key: key,
Expand Down

0 comments on commit f045d96

Please sign in to comment.