()
list.forEach((item) => {
map.set(item.key, item.value)
})
- props.setData(map)
+ props.setObject(map)
}
}
@@ -87,7 +89,7 @@ export default function AddKeyValueComponent(props: Props) {
className='form-control'
placeholder={t(`Enter ${props.keyName.toLowerCase()} value`)}
required
- aria-describedby={t(`${props.keyName.toLowerCase()} value`)}
+ aria-describedby={`${props.keyName.toLowerCase()} value`}
/>
diff --git a/src/object-types/CreateProjectPayload.ts b/src/object-types/CreateProjectPayload.ts
index e67b15b6..fab2c313 100644
--- a/src/object-types/CreateProjectPayload.ts
+++ b/src/object-types/CreateProjectPayload.ts
@@ -10,16 +10,17 @@
export default interface ProjectPayload {
name: string
- description: string
- version: string
+ description?: string
+ version?: string
visibility: string
projectType: string
- tag: string
- domain: string
- leadArchitect: string
- defaultVendorId: string
- state: string
- phaseOutSince: string
- moderators: string[]
- contributors: string[]
+ tag?: string
+ domain?: string
+ leadArchitect?: string
+ defaultVendorId?: string
+ externalUrls?: object
+ state?: string
+ phaseOutSince?: string
+ moderators?: string[]
+ contributors?: string[]
}