diff --git a/server/src/utils/misc.ts b/server/src/utils/misc.ts index e34a19112d..910bc0962a 100644 --- a/server/src/utils/misc.ts +++ b/server/src/utils/misc.ts @@ -63,7 +63,7 @@ export const isSmartSearchEnabled = (machineLearning: SystemConfig['machineLearn export const isFacialRecognitionEnabled = (machineLearning: SystemConfig['machineLearning']) => isMachineLearningEnabled(machineLearning) && machineLearning.facialRecognition.enabled; export const isDuplicateDetectionEnabled = (machineLearning: SystemConfig['machineLearning']) => - isMachineLearningEnabled(machineLearning) && machineLearning.duplicateDetection.enabled; + isSmartSearchEnabled(machineLearning) && machineLearning.duplicateDetection.enabled; export const isConnectionAborted = (error: Error | any) => error.code === 'ECONNABORTED';