Fix warnings and update tracability
This commit is contained in:
@@ -145,10 +145,10 @@ function createQueueStore() {
|
||||
|
||||
// Get repository handle from auth store
|
||||
const authState = get(auth);
|
||||
if (!authState.isAuthenticated || !authState.repository) {
|
||||
if (!authState.isAuthenticated) {
|
||||
throw new Error("User not authenticated");
|
||||
}
|
||||
const repositoryHandle = authState.repository.getHandle();
|
||||
const repositoryHandle = auth.getRepository().getHandle();
|
||||
|
||||
// Use new Rust commands that accept IDs only
|
||||
if (trackIds.length === 1) {
|
||||
@@ -170,6 +170,10 @@ function createQueueStore() {
|
||||
}
|
||||
}
|
||||
|
||||
async function clear() {
|
||||
set(initialState);
|
||||
}
|
||||
|
||||
return {
|
||||
subscribe,
|
||||
next,
|
||||
@@ -182,6 +186,7 @@ function createQueueStore() {
|
||||
moveInQueue,
|
||||
syncFromRust,
|
||||
cleanup,
|
||||
clear,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user