gd-sprest-bs 10.7.4 → 10.7.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -20,13 +20,13 @@ var wpSPFx_1 = require("./wpSPFx");
20
20
  * List Form WebPart
21
21
  */
22
22
  var SPFxListFormWebPart = function (wpProps) {
23
+ // See if we have already rendered the form
24
+ if (wpProps.spfx.domElement.querySelector("form")) {
25
+ return;
26
+ }
23
27
  // Set the base properties
24
28
  var baseProps = {
25
29
  render: function (el, cfg) {
26
- // See if the display or edit form already exists
27
- if (wp.DisplayForm != null || wp.EditForm != null) {
28
- return;
29
- }
30
30
  // Set the list form properties
31
31
  var listProps = {
32
32
  itemId: wpProps.spfx.context.itemId,