Laura10101 / contractor-tax-calculator

0 stars 2 forks source link

Saving rule after exiting rule tier dialog throws error #238

Closed Laura10101 closed 9 months ago

Laura10101 commented 9 months ago

Steps to reproduce

  1. Edit any tiered rate or secondary tiered rate rule
  2. Edit or create a tier in the dialog, or cancel the dialog
  3. Attempt to save the rule

Expected results The rule should save correctly

Actual results The following error is thrown: "cannot read properties of null (reading 'id')".

Laura10101 commented 9 months ago

The logic to move the app state to the parent state was unexpectedly clearing the parent ruleset in the config app. Removed the offending line.