mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-29 03:09:40 +02:00
Merge branch 'staging' into develop
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -499,7 +499,15 @@ export abstract class IssueSyncManagerBase {
|
||||
return (pField.node.options ?? []).find((it) => it.id === field.optionId)
|
||||
}
|
||||
|
||||
findOptionId (container: ContainerFocus, fieldId: string, value: string, target: IssueSyncTarget): string | undefined {
|
||||
findOptionId (
|
||||
container: ContainerFocus,
|
||||
fieldId: string,
|
||||
value: string | null,
|
||||
target: IssueSyncTarget
|
||||
): string | undefined {
|
||||
if (value == null) {
|
||||
return
|
||||
}
|
||||
const structure = container.container.projectStructure.get(target.target._id)
|
||||
if (structure === undefined) {
|
||||
return
|
||||
@@ -508,7 +516,7 @@ export abstract class IssueSyncManagerBase {
|
||||
if (pField === undefined) {
|
||||
return undefined
|
||||
}
|
||||
return (pField.node.options ?? []).find((it) => it.name.toLowerCase() === value.toLowerCase())?.id
|
||||
return (pField.node.options ?? []).find((it) => it.name?.toLowerCase() === value.toLowerCase())?.id
|
||||
}
|
||||
|
||||
async toPlatformField (
|
||||
|
||||
Reference in New Issue
Block a user