Skip to content

fixes #8, can't create new inlays

JonGold requested to merge JonGold/inlayfp:main into main

$scope.formProcessors originally contained a list of form processor names. At some point it changed to being an array of the form processor objects. So the value of the "Select a Form Processor" widget is a string on previously-saved inlays, but on newly-created inlays, you can't save because of this line in $scope.setFP:

$scope.fp = various.formProcessors.find(fp => fp.name === inlay.config.formProcessor);

It needs to compare a name to a name, it was comparing a name to an object.

This MR ensures we only store the name of the processor in inlay.config.formProcessor.

Merge request reports

Loading