mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	fix(web)*: Lodash issue in Svelte (#1749)
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
	import CircleOutline from 'svelte-material-icons/CircleOutline.svelte';
 | 
			
		||||
	import { fly } from 'svelte/transition';
 | 
			
		||||
	import { AssetResponseDto } from '@api';
 | 
			
		||||
	import { chain } from 'lodash-es';
 | 
			
		||||
	import lodash from 'lodash-es';
 | 
			
		||||
	import ImmichThumbnail from '../shared-components/immich-thumbnail.svelte';
 | 
			
		||||
	import {
 | 
			
		||||
		assetInteractionStore,
 | 
			
		||||
@@ -29,7 +29,8 @@
 | 
			
		||||
	let isMouseOverGroup = false;
 | 
			
		||||
	let actualBucketHeight: number;
 | 
			
		||||
	let hoveredDateGroup = '';
 | 
			
		||||
	$: assetsGroupByDate = chain(assets)
 | 
			
		||||
	$: assetsGroupByDate = lodash
 | 
			
		||||
		.chain(assets)
 | 
			
		||||
		.groupBy((a) => new Date(a.createdAt).toLocaleDateString(locale, groupDateFormat))
 | 
			
		||||
		.sortBy((group) => assets.indexOf(group[0]))
 | 
			
		||||
		.value();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user