fix(settings): correct invoke payload keys and error handler routing
- folder_ids: use snake_case in both set_tagging_queue_folder_ids invoke calls (toggleTaggingQueueFolder and setTaggingQueueFolderIds) to match the Rust SetTaggingQueueFolderIdsParams serde field name - threshold save error: route setTaggerThreshold() catch to setTaggerThresholdError instead of setTaggerQueueStatus so the error surfaces next to the threshold input, not the queue targets card
This commit is contained in:
@@ -394,7 +394,7 @@ export function SettingsModal() {
|
||||
setTaggerThresholdError(null);
|
||||
setTaggerThresholdSaving(true);
|
||||
void setTaggerThreshold(value)
|
||||
.catch((error: unknown) => setTaggerQueueStatus(String(error)))
|
||||
.catch((error: unknown) => setTaggerThresholdError(String(error)))
|
||||
.finally(() => {
|
||||
setTaggerThresholdDraft(null);
|
||||
setTaggerThresholdSaving(false);
|
||||
|
||||
Reference in New Issue
Block a user