INNER CODE UNIT · JavaScript
data
IHTSDO/snowstorm · src/main/resources/fhir/js/dashboard/conceptMapUi.js:187
const data = await res.json().catch(() => ({}));
const msg = data.issue && data.issue[0] && (data.issue[0].diagnostics || data.issue[0].details && data.issue[0].details.text);
throw new Error(msg || data.message || 'Failed to delete ConceptMap');
}
bootstrap.Modal.getOrCreateInstance(document.getElementById('deleteConceptMapModal')).hide();
await this.loadConceptMaps();
} catch (err) {
this.deleteConceptMapError = err.name === 'AbortError' ? 'Request timed out. Please try again.' : (err.message || 'Failed to delete ConceptMap');
} finally {
this.deletingConceptMap = false;
}
}
};