Energinet-DataHub / greenforce-frontend

GreenForce monorepo for the DataHub and Energy Origin frontends. Part of Energinet DataHub.
Apache License 2.0
66 stars 13 forks source link

fix(dh): range validators not working with watt-field #3335

Closed ManBearTM closed 2 weeks ago

ManBearTM commented 2 weeks ago

The range validators was not being considered in watt-field for the isRequired check. This PR fixes that (I had to change the WattRangeValidator to always return the same function reference, otherwise the hasValidator wouldn't work).

nx-cloud[bot] commented 2 weeks ago

☁️ Nx Cloud Report

CI is running/has finished running commands for commit a4aff6b4e7769a7c2aa6d483618d345c3a5e62f0. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 3 targets - [`nx run api-dh:build-client`](https://cloud.nx.app/runs/426SbR63Ny?utm_source=pull-request&utm_medium=comment) - [`nx run watt:build-storybook`](https://cloud.nx.app/runs/j6rqLIBVPo?utm_source=pull-request&utm_medium=comment) - [`nx build app-dh`](https://cloud.nx.app/runs/Ich2jZgHct?utm_source=pull-request&utm_medium=comment)

Sent with 💌 from NxCloud.