chore: a little more refactoring here if it's undefined
Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -241,10 +241,12 @@ export async function createRouter(
|
||||
})),
|
||||
output: template.spec.output ?? {},
|
||||
parameters: values,
|
||||
user: {
|
||||
entity: userEntity as UserEntity,
|
||||
ref: userEntityRef,
|
||||
},
|
||||
user: userEntity
|
||||
? {
|
||||
entity: userEntity as UserEntity,
|
||||
ref: userEntityRef,
|
||||
}
|
||||
: undefined,
|
||||
templateInfo: {
|
||||
entityRef: stringifyEntityRef({
|
||||
kind,
|
||||
|
||||
Reference in New Issue
Block a user