fix: clear error on import success and enable noNonNullAssertion warning

- Clear error state in importGitLabIssues when result.success is true
- Change biome noNonNullAssertion rule from 'off' to 'warn'

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
StillKnotKnown
2026-03-13 22:28:54 +02:00
co-authored by Claude Opus 4.6
parent 80170562a4
commit 302233b31c
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -46,7 +46,7 @@
"useNodejsImportProtocol": "off",
"useImportType": "off",
"useTemplate": "off",
"noNonNullAssertion": "off"
"noNonNullAssertion": "warn"
},
"suspicious": {
"recommended": true,
@@ -158,6 +158,7 @@ export async function importGitLabIssues(
try {
const result = await window.electronAPI.importGitLabIssues(projectId, issueIids);
if (result.success) {
store.setError(null); // Clear error on success
return true;
} else {
store.setError(result.error || 'Failed to import GitLab issues');