mirror of
https://github.com/invoke-ai/InvokeAI
synced 2024-08-30 20:32:17 +00:00
fix(ui): do not allow comparison between undefined original types
This commit is contained in:
parent
2cbf7d9221
commit
6a2c53f6c5
@ -9,13 +9,13 @@ export const areTypesEqual = (sourceType: FieldType, targetType: FieldType) => {
|
||||
if (isEqual(_sourceType, _targetType)) {
|
||||
return true;
|
||||
}
|
||||
if (isEqual(_sourceType, _targetTypeOriginal)) {
|
||||
if (_targetTypeOriginal && isEqual(_sourceType, _targetTypeOriginal)) {
|
||||
return true;
|
||||
}
|
||||
if (isEqual(_sourceTypeOriginal, _targetType)) {
|
||||
if (_sourceTypeOriginal && isEqual(_sourceTypeOriginal, _targetType)) {
|
||||
return true;
|
||||
}
|
||||
if (isEqual(_sourceTypeOriginal, _targetTypeOriginal)) {
|
||||
if (_sourceTypeOriginal && _targetTypeOriginal && isEqual(_sourceTypeOriginal, _targetTypeOriginal)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user