Skip to content

Commit

Permalink
fix(T254): fix q1 20241118
Browse files Browse the repository at this point in the history
  • Loading branch information
sgravinadxc committed Nov 18, 2024
1 parent 8b670a6 commit 2dd88ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const PrintSurvey: React.FC = () => {
section: PrintSuveySectionI
) => {
//18/09/2024 NASCOSTE SEZIONI FASCIA DI ETA' E GENERE DA STAMPA PER ADEGUAMENTO
if (!(['5', '6'].includes(question.id as string))){
if (!(['2','3','4','5', '6'].includes(question.id as string))){

if (question.id === '9') {
const didascalia = <span style={{ fontWeight: 'normal' }}>(scrivere la Provincia per esteso)</span>;
Expand Down
4 changes: 3 additions & 1 deletion fe-piattaforma/src/utils/jsonFormHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,13 +285,15 @@ const getSchemaRequired = (
}
};

const KEY_BE_TO_EXCLUDE = ["codiceFiscaleNonDisponibile","tipoDocumento","numeroDocumento"]

export const generateForm: (schema: SchemaI, compile?: boolean) => FormI = (
schema,
compile = false
) => {
if (Object.keys(schema)?.length)
return newForm(
Object.keys(schema.properties).map((field) =>
Object.keys(schema.properties).filter((field) => !KEY_BE_TO_EXCLUDE.includes(schema.properties[field].keyBE || "")).map((field) =>
newFormField({
...getTypeReverse(schema.properties[field]),
field,
Expand Down

0 comments on commit 2dd88ca

Please sign in to comment.