Bug fixes batch (#18457)
Fixes https://github.com/twentyhq/twenty/issues/18181 Fixes https://github.com/twentyhq/twenty/issues/16842 Iterators remain running, which prevent the stopping state to eventually become stopped Fixes https://github.com/twentyhq/twenty/issues/18186
This commit is contained in:
+8
-8
@@ -285,12 +285,12 @@ export const isRecordMatchingFilter = ({
|
||||
(fullNameFilter.firstName === undefined ||
|
||||
isMatchingStringFilter({
|
||||
stringFilter: fullNameFilter.firstName,
|
||||
value: record[filterKey].firstName,
|
||||
value: record[filterKey]?.firstName,
|
||||
})) &&
|
||||
(fullNameFilter.lastName === undefined ||
|
||||
isMatchingStringFilter({
|
||||
stringFilter: fullNameFilter.lastName,
|
||||
value: record[filterKey].lastName,
|
||||
value: record[filterKey]?.lastName,
|
||||
}))
|
||||
);
|
||||
}
|
||||
@@ -314,7 +314,7 @@ export const isRecordMatchingFilter = ({
|
||||
|
||||
return isMatchingStringFilter({
|
||||
stringFilter: value,
|
||||
value: record[filterKey][key],
|
||||
value: record[filterKey]?.[key],
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -331,7 +331,7 @@ export const isRecordMatchingFilter = ({
|
||||
|
||||
return isMatchingStringFilter({
|
||||
stringFilter: value,
|
||||
value: record[filterKey][key],
|
||||
value: record[filterKey]?.[key],
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -373,7 +373,7 @@ export const isRecordMatchingFilter = ({
|
||||
if (isDefined(actorFilter.workspaceMemberId)) {
|
||||
return isMatchingUUIDFilter({
|
||||
uuidFilter: actorFilter.workspaceMemberId,
|
||||
value: record[filterKey].workspaceMemberId,
|
||||
value: record[filterKey]?.workspaceMemberId,
|
||||
});
|
||||
}
|
||||
|
||||
@@ -381,7 +381,7 @@ export const isRecordMatchingFilter = ({
|
||||
actorFilter.name === undefined ||
|
||||
isMatchingStringFilter({
|
||||
stringFilter: actorFilter.name,
|
||||
value: record[filterKey].name,
|
||||
value: record[filterKey]?.name,
|
||||
})
|
||||
);
|
||||
}
|
||||
@@ -394,7 +394,7 @@ export const isRecordMatchingFilter = ({
|
||||
|
||||
return isMatchingStringFilter({
|
||||
stringFilter: emailsFilter.primaryEmail,
|
||||
value: record[filterKey].primaryEmail,
|
||||
value: record[filterKey]?.primaryEmail,
|
||||
});
|
||||
}
|
||||
case FieldMetadataType.PHONES: {
|
||||
@@ -410,7 +410,7 @@ export const isRecordMatchingFilter = ({
|
||||
|
||||
return isMatchingStringFilter({
|
||||
stringFilter: value,
|
||||
value: record[filterKey][key],
|
||||
value: record[filterKey]?.[key],
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user