Return null for unknown type in getStateData to prevent empty URL request

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-09 16:31:29 +08:00
parent 5bb89a631d
commit 01385d798d
2 changed files with 9 additions and 0 deletions

View File

@@ -55,6 +55,8 @@ export const useCompareStore = defineStore("compareStore", {
case "filter":
api = `/api/filters/${id}/discover`;
break;
default:
return null;
}
try {
const response = await apiClient.get(api);