web: build/autohold: fix props input
I am currently getting the below error in my console about the type passed to AutoholdModal. Convert the change to a string. Warning: Failed prop type: Invalid prop `change` of type `number` \ supplied to `AutoholdModal`, expected `string`. in AutoholdModal (created by ConnectFunction) in ConnectFunction (at Build.jsx:273) in Build (created by ConnectFunction) in ConnectFunction (at Build.jsx:254) in section (created by PageSection) < .. and so on ..> Change-Id: I9c9a5edfa18f0344ac4a50c62c798a5d4e404c18
This commit is contained in:
parent
7a8a979fda
commit
50b6bf0570
@ -273,7 +273,7 @@ function Build({ build, tenant, timezone, user }) {
|
||||
{<AutoholdModal
|
||||
showAutoholdModal={showAutoholdModal}
|
||||
setShowAutoholdModal={setShowAutoholdModal}
|
||||
change={change}
|
||||
change={String(change)}
|
||||
changeRef={ref}
|
||||
project={project}
|
||||
jobName={job_name}
|
||||
|
Loading…
Reference in New Issue
Block a user