mirror of
https://github.com/openmhz/trunk-server.git
synced 2026-11-16 10:47:32 -05:00
fix bugs
This commit is contained in:
@@ -96,6 +96,7 @@ async function csv_import(shortName, filename, callback) {
|
|||||||
var row = data[i];
|
var row = data[i];
|
||||||
if (!( "Decimal" in row) || !("Description" in row) || !("Alpha Tag" in row)) {
|
if (!( "Decimal" in row) || !("Description" in row) || !("Alpha Tag" in row)) {
|
||||||
console.error("Error: csv import column header error");
|
console.error("Error: csv import column header error");
|
||||||
|
console.error(row)
|
||||||
callback("Column Headers are required - Required Columns: 'Decimal' 'Decscription' 'Alpha Tag' Optional Column: 'Priority' ", null);
|
callback("Column Headers are required - Required Columns: 'Decimal' 'Decscription' 'Alpha Tag' Optional Column: 'Priority' ", null);
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ const System = () => {
|
|||||||
<Header size="small">Description</Header>
|
<Header size="small">Description</Header>
|
||||||
{system.description}
|
{system.description}
|
||||||
</Segment>
|
</Segment>
|
||||||
{system.status.length>0 &&
|
{system.status &&
|
||||||
<Segment>
|
<Segment>
|
||||||
<Header size="small">Status Message</Header>
|
<Header size="small">Status Message</Header>
|
||||||
{system.status}
|
{system.status}
|
||||||
|
|||||||
Reference in New Issue
Block a user