mirror of
https://github.com/captbaritone/webamp.git
synced 2026-01-23 02:15:01 +00:00
Fix typescript errors
This commit is contained in:
parent
c55212b363
commit
157f8d28df
2 changed files with 1 additions and 6 deletions
|
|
@ -1,5 +0,0 @@
|
|||
import algoliasearch from "algoliasearch";
|
||||
import { ALGOLIA_ACCOUNT, ALGOLIA_KEY, ALGOLIA_INDEX } from "./config";
|
||||
|
||||
const client = algoliasearch(ALGOLIA_ACCOUNT, ALGOLIA_KEY);
|
||||
export const searchIndex = client.initIndex(ALGOLIA_INDEX);
|
||||
|
|
@ -111,7 +111,7 @@ export function dragSelected(offset: number): Thunk {
|
|||
const state = getState();
|
||||
const tracks = Selectors.getTracks(state);
|
||||
const trackOrder = Selectors.getTrackOrder(state);
|
||||
const selectedIds = Selectors.getSelectedTrackIds(state);
|
||||
const selectedIds = Selectors.getSelectedTrackIdsSet(state);
|
||||
const firstSelected = trackOrder.findIndex(
|
||||
(trackId) => tracks[trackId] && selectedIds.has(trackId)
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue