Use proper camera-to-key utility

This commit is contained in:
Sam Becker 2023-11-18 11:10:19 -06:00
parent 186752c177
commit 20590f6c29

2
src/cache/index.ts vendored
View File

@ -62,7 +62,7 @@ const getPhotosCacheKeyForOption = (
// Complex keys // Complex keys
case 'camera': { case 'camera': {
const value = options[option]; const value = options[option];
return value ? `${option}-${value.make}-${value.model}` : null; return value ? `${option}-${createCameraKey(value)}` : null;
} }
} }
}; };