LP1832897 FM Editor fieldOptions sanity check
authorBill Erickson <berickxx@gmail.com>
Thu, 29 Aug 2019 15:58:20 +0000 (11:58 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 29 Aug 2019 16:29:58 +0000 (12:29 -0400)
commit4eae4860e8170c5531f4ba11448be4d25a6b82e6
tree12ef3a040d1deaa68b6bc1aa28ca3b053e08bffb
parent351ac3d9d24c1aa5255577bf8a8d5aa296b5565e
LP1832897 FM Editor fieldOptions sanity check

If the caller sets the fieldOptions property to null/undefined the FM
editor will throw a JS error (field.isRequired is not a function) and fail
to render properly.  This adds a sanity check to the fieldOptions value.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts