removed id from rubric

This commit is contained in:
2023-10-24 14:59:36 -06:00
parent 3086775cdf
commit 7477cf8e06
3 changed files with 12 additions and 11 deletions

View File

@@ -15,17 +15,18 @@
private int points { get; set; }
private string label { get; set; }
private string lastRubricItemId { get; set; }
private bool firstLoad = true;
protected override void OnParametersSet()
{
if(RubricItem.Id != lastRubricItemId)
if(firstLoad)
{
lastRubricItemId = RubricItem.Id;
firstLoad = false;
points = RubricItem.Points;
label = RubricItem.Label;
}
}
private void editItem(string label, int points)
{
var newRubricItem = RubricItem with