Skip to content

Commit

Permalink
feat: remove settings.fetchingRandomly
Browse files Browse the repository at this point in the history
low praticality
  • Loading branch information
letwebdev committed Feb 21, 2024
1 parent 1f4498d commit a217dc0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions src/stores/fetchData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,7 @@ export const useFetchingDataStore = defineStore("fetchData", () => {
itemIds = liveData.items
}

if (settings.fetchingRandomly.value) {
return shuffleArray(itemIds)
} else {
return itemIds
}
return itemIds
}
function removeAlreadyFetchedItemIds(liveData: Extract<LiveData, number[] | object>, quantity: number) {
for (const livedataCacheItem of liveDataCache) {
Expand Down
4 changes: 0 additions & 4 deletions src/stores/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@ export const useSettingsStore = defineStore("settings", () => {
description: "Fetching lists immediately after selection" as const,
value: false,
}
fetchingRandomly = {
description: "Fetching randomly" as const,
value: false,
}

displayingItemTitle = {
description: "Displaying item title" as const,
Expand Down

0 comments on commit a217dc0

Please sign in to comment.