Skip to content

Commit

Permalink
Link settings can be empty
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-moser committed Jan 17, 2025
1 parent b18f253 commit 35f931f
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import {
import { Link } from '@Pimcore/modules/element/dynamic-types/defintinitions/objects/data-related/components/link/link'

export type LinkObjectDataDefinition = AbstractObjectDataDefinition & {
allowedTypes: string[]
allowedTargets: string[]
disabledFields: string[]
allowedTypes?: string[] | null
allowedTargets?: string[] | null
disabledFields?: string[] | null
}

export class DynamicTypeObjectDataLink extends DynamicTypeObjectDataAbstract {
Expand All @@ -30,7 +30,10 @@ export class DynamicTypeObjectDataLink extends DynamicTypeObjectDataAbstract {
return (
<Link
{ ...props }
allowedTargets={ props.allowedTargets ?? [] }
allowedTypes={ props.allowedTypes ?? [] }
disabled={ props.noteditable === true }
disabledFields={ props.disabledFields ?? [] }
/>
)
}
Expand Down

0 comments on commit 35f931f

Please sign in to comment.