Skip to content

Mark ID as nullable in ItemId

Erwan Rouchet requested to merge itemid-nullable-id into master

Closes #1256 (closed)

The ItemId component has always been capable of displaying a null, since that makes parent components easier to write (no need for an extra v-if or a id ?? '' or something similar), so this makes Vue understand the the ID can be nullable. Unfortunately, there is no good way to have a restricted nullable prop, since we have to use default: null to specify the prop type. The prop type is a JavaScript object, not a TypeScript type, so we can't use string? or string | null.

Merge request reports

Loading