Skip to content

Commit

Permalink
Fix an error rendering fields
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Oct 5, 2023
1 parent f3054d6 commit 905f318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/SuperTableField.php
Original file line number Diff line number Diff line change
Expand Up @@ -785,7 +785,7 @@ public function getInputHtml(mixed $value, ?ElementInterface $element = null): s
');';

// Safe to create the default blocks?
if (($createDefaultBlocks && count($value) < $this->minBlocks) || $this->staticField) {
if (($createDefaultBlocks && count($value) < $this->minRows) || $this->staticField) {
$blockTypeJs = Json::encode($this->getBlockTypes()[0]);

$view->setInitialDeltaValue($this->handle, null);
Expand Down

0 comments on commit 905f318

Please sign in to comment.