IEEE.org     |     IEEE Xplore Digital Library     |     IEEE Standards     |     IEEE Spectrum     |     More Sites

Commit 26d3c043 authored by APalumbo97's avatar APalumbo97
Browse files

Merge branch 'dev' into export-headers

parents 393d962e 334e32fd
......@@ -344,6 +344,9 @@ const storeCSV = async(assetTypeId, csvJson) => {
if (checkedAsset.length === 0) {
throw 'The selected CSV file contains a row for an asset that is not being tracked (Asset ID '+ assetId + ')';
}
if (checkedAsset[0].asset_type_id != assetTypeId) {
throw 'The selected CSV file contains an asset of a different asset type than the one selected (Asset ID '+ assetId + ')';
}
for (const propertyName in asset) {
if (propertyName !== 'asset_id') {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment