Skip to content

Commit

Permalink
Fix list of automated samples
Browse files Browse the repository at this point in the history
Add XRF_SCAN and XRAY_SCAN to the list.
  • Loading branch information
nicou committed Jul 11, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent a72d784 commit 1c839f0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/helpers.ts
Original file line number Diff line number Diff line change
@@ -10,7 +10,15 @@ export function pushError(errors: string[] = [], error: Error | string, $notify?
});
}

const AUTOMATED_SAMPLES = ["MATERIAL_SAMPLE", "MICROSCOPE_SAMPLE", "AGE", "HISTORY_SAMPLE", "XRF_SAMPLE"];
const AUTOMATED_SAMPLES = [
"MATERIAL_SAMPLE",
"MICROSCOPE_SAMPLE",
"AGE",
"HISTORY_SAMPLE",
"XRF_SAMPLE",
"XRF_SCAN",
"XRAY_SCAN",
];

export function isAutomatedSample(sample: any) {
if (!sample || !sample.additional_type) {

0 comments on commit 1c839f0

Please sign in to comment.