LP1832897 FM Editor fieldOptions sanity check
authorBill Erickson <berickxx@gmail.com>
Thu, 29 Aug 2019 15:58:20 +0000 (11:58 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 3 Sep 2019 20:07:31 +0000 (16:07 -0400)
commite05f7e4066653929ed4b198fa0b0ba446b76828f
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>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/src/eg2/src/app/share/fm-editor/fm-editor.component.ts