Skip to content

Commit

Permalink
feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
alextran1502 authored and jrasm91 committed Sep 1, 2023
1 parent c32cb78 commit 2d737ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web/src/lib/stores/assets.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { api, AssetApiGetTimeBucketsRequest, AssetResponseDto } from '@api';
import { writable } from 'svelte/store';
import { handleError } from '../utils/handle-error';
import { DateTime } from 'luxon';
import lodash from 'lodash-es';
import { debounce } from 'lodash-es';

export enum BucketPosition {
Above = 'above',
Expand Down Expand Up @@ -177,12 +177,12 @@ export class AssetStore {
bucket.bucketDate = bucketDate;
bucket.bucketHeight = THUMBNAIL_HEIGHT;
bucket.assets = [];
bucket.cancelToken = new AbortController();
bucket.cancelToken = null;
bucket.position = BucketPosition.Unknown;

return bucket;
}
private debounceAddToBucket = lodash.debounce(() => this._addToBucket(), 2000);
private debounceAddToBucket = debounce(() => this._addToBucket(), 2000);

addToBucket(asset: AssetResponseDto) {
this.newAssets.push(asset);
Expand Down

0 comments on commit 2d737ae

Please sign in to comment.