We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c24fdbd commit a255d8fCopy full SHA for a255d8f
2 files changed
frontend/src/shared/fields/sentiment-field.js
@@ -25,8 +25,7 @@ export default class SentimentField extends GenericField {
25
value: 'neutral',
26
label: 'Neutral',
27
range: {
28
- gt: 33,
29
- lt: 67
+ between: [33, 67]
30
}
31
},
32
{
frontend/src/shared/filter/helpers/build-api-payload.js
@@ -48,6 +48,17 @@ function _buildAttributeBlock(attribute) {
48
49
{ or: [] }
50
)
51
+ } else if (attribute.name === 'averageSentiment') {
52
+ return attribute.value.reduce(
53
+ (obj, a) => {
54
+ obj.or.push({
55
+ averageSentiment: a.range
56
+ })
57
+
58
+ return obj
59
+ },
60
+ { or: [] }
61
+ )
62
} else if (attribute.name === 'type') {
63
return {
64
and: [
0 commit comments