Skip to content

Commit

Permalink
fix: showing not added when project status and operator not filled out
Browse files Browse the repository at this point in the history
  • Loading branch information
Sepehr-Sobhani committed May 26, 2023
1 parent 37092a0 commit 72085b7
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions app/components/Form/ProjectForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,16 @@ export const createProjectUiSchema = (
operatorId: {
"ui:placeholder": "Select an Operator",
"ui:widget": "SearchWidget",
"ui:options": {
text: `${
(legalName ? `${legalName}` : "") +
(bcRegistryId ? ` (${bcRegistryId})` : "")
}`,
},
...(legalName || bcRegistryId
? {
"ui:options": {
text: `${
(legalName ? `${legalName}` : "") +
(bcRegistryId ? ` (${bcRegistryId})` : "")
}`,
},
}
: {}),
},
fundingStreamRfpId: {
"ui:widget": "SelectRfpWidget",
Expand All @@ -78,9 +82,7 @@ export const createProjectUiSchema = (
projectStatusId: {
"ui:placeholder": "Select a Project Status",
"ui:widget": "SearchWidget",
"ui:options": {
text: `${projectStatus}`,
},
...(projectStatus ? { "ui:options": { text: projectStatus } } : {}),
},
sectorName: {
"ui:placeholder": "Select a Sector",
Expand Down

0 comments on commit 72085b7

Please sign in to comment.