refactor: always use the same bucket size (#4662)

This commit is contained in:
Jason Rasmussen
2023-10-26 14:55:10 -04:00
committed by GitHub
parent 0167407370
commit c76c1d6bf8
9 changed files with 17 additions and 21 deletions
+1 -2
View File
@@ -17,7 +17,6 @@
import { createAssetInteractionStore } from '$lib/stores/asset-interaction.store';
import { AssetStore } from '$lib/stores/assets.store';
import { openFileUploadDialog } from '$lib/utils/file-uploader';
import { TimeBucketSize } from '@api';
import type { PageData } from './$types';
import { assetViewingStore } from '$lib/stores/asset-viewing.store';
import { mdiDotsVertical, mdiPlus } from '@mdi/js';
@@ -26,7 +25,7 @@
let { isViewing: showAssetViewer } = assetViewingStore;
let handleEscapeKey = false;
const assetStore = new AssetStore({ size: TimeBucketSize.Month, isArchived: false });
const assetStore = new AssetStore({ isArchived: false });
const assetInteractionStore = createAssetInteractionStore();
const { isMultiSelectState, selectedAssets } = assetInteractionStore;