Salary Components are not appearing in Earning and Deductions child tables in Salary Structure.
It looks like the error is being caused by type=earning filter, because in Salary Component doctype, the type field is a select option between Earning and Deduction in Title case and the filter applied here is in lower case