mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 08:01:35 +00:00
fix(cli): handle case where 'toString' is a schema field
This commit is contained in:
+4
-1
@@ -55,7 +55,10 @@ export function deepEqual<T>(a: T, b: T): boolean {
|
||||
if (a.valueOf !== Object.prototype.valueOf) {
|
||||
return a.valueOf() === b.valueOf();
|
||||
}
|
||||
if (a.toString !== Object.prototype.toString) {
|
||||
if (
|
||||
a.toString !== Object.prototype.toString &&
|
||||
typeof a.toString == "function"
|
||||
) {
|
||||
return a.toString() === b.toString();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user