Skip to content

Commit

Permalink
#5270 - Warning should not displayed for importing CDXML, base64 CDX,…
Browse files Browse the repository at this point in the history
… CDX formats (#5928)
  • Loading branch information
GlisicMirjana authored Nov 6, 2024
1 parent 5a281ac commit eb21a9d
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ export function couldBeSaved(
if (hasRxnArrow) {
const arrayOfArrows: Array<any> = Array.from(struct.rxnArrows.values());
const rxnArrowMode: RxnArrowMode = arrayOfArrows[0].mode;
if (rxnArrowMode !== RxnArrowMode.OpenAngle) {
if (
![RxnArrowMode.OpenAngle, RxnArrowMode.Retrosynthetic].includes(
rxnArrowMode,
)
) {
warnings.push(
`The ${formatName} format does not support drawn elements: the reaction ${rxnArrowMode} arrow will be replaced with the reaction arrow`,
);
Expand Down

0 comments on commit eb21a9d

Please sign in to comment.