diff options
author | Ian Wienand <iwienand@redhat.com> | 2022-09-02 09:34:07 +1000 |
---|---|---|
committer | Ian Wienand <iwienand@redhat.com> | 2022-09-13 11:24:58 +1000 |
commit | 50b6bf05702d5319b53bd7f14b643bacc9d581ce (patch) | |
tree | 842b1f609363bd3e1953863e269a16aa9c621f59 | |
parent | 7a8a979fda7b09a10600ce2c4d8d2c73a8acf985 (diff) | |
download | zuul-50b6bf05702d5319b53bd7f14b643bacc9d581ce.tar.gz |
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
-rw-r--r-- | web/src/containers/build/Build.jsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/src/containers/build/Build.jsx b/web/src/containers/build/Build.jsx index 80d0c1b8b..7acfa5887 100644 --- a/web/src/containers/build/Build.jsx +++ b/web/src/containers/build/Build.jsx @@ -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} |