mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-08 01:08:50 -06:00
web: Transmission lines
This commit is contained in:
@@ -234,3 +234,10 @@ export const changeData = (
|
||||
}
|
||||
throw Error(`Unknown field: ${fieldName}`);
|
||||
};
|
||||
export const assertBusesNotEmpty = (
|
||||
scenario: UnitCommitmentScenario,
|
||||
): ValidationError | null => {
|
||||
if (Object.keys(scenario.Buses).length === 0)
|
||||
return { message: "Profiled unit requires an existing bus." };
|
||||
return null;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user