diff --git a/CHANGELOG.md b/CHANGELOG.md index 19b49a15..b99922fe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [1.1.2] - Unreleased +### Fixed +- The known_value filter property for triggers is correctly considered when relevant. +([#393](https://github.com/astarte-platform/astarte-dashboard/issues/393)) ## [1.1.1] - 2023-11-15 ### Added diff --git a/src/astarte-client/models/Trigger/index.ts b/src/astarte-client/models/Trigger/index.ts index 836f1c2a..16d955df 100644 --- a/src/astarte-client/models/Trigger/index.ts +++ b/src/astarte-client/models/Trigger/index.ts @@ -321,9 +321,12 @@ const astarteSimpleDataTriggerObjectSchema: yup.ObjectSchema { - if (!iface || !matchPath) { + if (!matchPath) { return yup.mixed().strip(true); } + if (!iface) { + return yup.mixed(); + } const matchMapping = iface.mappings.find((m) => AstarteMapping.matchEndpoint(m.endpoint, matchPath), );