Make currentArg always part of header
This commit is contained in:
@ -104,8 +104,9 @@ function CommandBarHeader({ children }: React.PropsWithChildren<object>) {
|
|||||||
</p>
|
</p>
|
||||||
{Object.entries(nonHiddenArgs || {})
|
{Object.entries(nonHiddenArgs || {})
|
||||||
.filter(
|
.filter(
|
||||||
([_, argConfig]) =>
|
([argName, argConfig]) =>
|
||||||
isReviewing ||
|
isReviewing ||
|
||||||
|
argName === currentArgument?.name ||
|
||||||
argConfig.skip === false ||
|
argConfig.skip === false ||
|
||||||
(typeof argConfig.required === 'function'
|
(typeof argConfig.required === 'function'
|
||||||
? argConfig.required(commandBarState.context)
|
? argConfig.required(commandBarState.context)
|
||||||
|
|||||||
Reference in New Issue
Block a user