Blazor App Debug: Null Error

Job ID: 38372914

Budget: $10 – $75 USD

This Blazor page (/gncprodboardentry) is designed for entering and managing production board data. Here's a summary:

Page Title and Form:

Displays the title "ProdBoardEntry" and a subtitle "Enter Production Board Data."
Uses an EditForm for data entry, bound to a SearchModel and handles form submission with SubmitForm.
Form Fields:

Date: Input for selecting the date of the production board entry.
Department ID: Numeric input for specifying the department.
Schedule: Text input for the schedule (appears if gncprodBoardDetails is not null).
Daily Message: Text input for entering a daily message.
Recognition: Text input for recognition information.
Production Details Table:

Visible if gncprodBoardDetails is not null.
Displays a table with columns for various production metrics like ProdBoardId, ProductType, Target Time, Target, Actual, Running Total, Down Time (mins), Scrap Parts, and Comments.
Includes buttons to add new details (AddNewDetail) and save all details (SaveAll).
Buttons:

Get Production Board: Submits the form to fetch production board details or create a new record if none exist.
Add New Detail: Adds a new production detail entry to the table, copying values from the last entry.
Save Production Details: Saves the updated list of production details to the database.
Code Behind:

SubmitForm: Fetches or creates production board details based on the provided date and department ID.
SaveAll: Saves all production details, setting the ProdBoardId for each detail.
AddNewDetail: Adds a new detail based on the last entry and saves it.
RefreshDetails: Updates the list of production details from the database.
SearchModel Class:

Contains properties for Date, DepartmentId, Schedule, DailyMessage, and Recognition.
This page is designed to facilitate the entry and management of production board data, allowing users to view, add, and save production details effectively.

The current problem I'm having is with the AddNewDetail Page.
when a new detail is added the app makes a copy of of the last detail saves it to the detail to the db, then the user modifies as needed.


Ideal Skills:
- Proficient in Blazor
- Strong understanding of SQL Server
- Experienced in debugging, particularly null errors in Blazor applications.