diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2023-08-26 20:38:27 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2023-09-05 21:02:52 -0300 |
commit | 12b8040b05e81a523ef59ba583dde751206f2e1d (patch) | |
tree | 79dea816bdcbce593cf919809f27ec57d600d4cf /src/data/things/track.js | |
parent | 25beb8731d756bfa4fe6babb9e4b0a707c7823e0 (diff) |
data, test: retain validator for Track.color
Diffstat (limited to 'src/data/things/track.js')
-rw-r--r-- | src/data/things/track.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js index 15a48bb4..8d0a7ad4 100644 --- a/src/data/things/track.js +++ b/src/data/things/track.js @@ -47,7 +47,9 @@ export class Track extends Thing { color: Thing.composite.from(`Track.color`, [ Thing.composite.exposeUpdateValueOrContinue(), Track.composite.withAlbumProperty('color'), - Thing.composite.expose('#album.color', {update: true}), + Thing.composite.expose('#album.color', { + update: {validate: isColor}, + }), ]), // Disables presenting the track as though it has its own unique artwork. |