@veritree/ui 0.57.0 → 0.57.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.57.0",
3
+ "version": "0.57.1",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -83,9 +83,13 @@ export default {
83
83
  * is also only used when the prop multiple is true.
84
84
  */
85
85
  const removeValueFromValueComputed = (value) => {
86
- this.valueComputed = this.valueComputed.filter(
87
- (valueComputed) => valueComputed !== value
88
- );
86
+ this.valueComputed = this.valueComputed.filter((valueComputed) => {
87
+ if (typeof valueComputed === 'object') {
88
+ return JSON.stringify(valueComputed) !== JSON.stringify(value);
89
+ }
90
+
91
+ return valueComputed !== value;
92
+ });
89
93
  };
90
94
 
91
95
  return {