Skip to content

Commit da2c615

Browse files
committed
- Fixed showing 0 values in entries
Signed-off-by: Arushad Ahmed <[email protected]>
1 parent d937f16 commit da2c615

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/Views/Components/ConditionalLink.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ public function __construct(
4040
$this->showLink = is_null($showLink) && $can ? auth()->guard($guard)->user()->can($can, $arg) : (bool) $showLink;
4141
$this->name = $name;
4242
$this->multiline = $multiline;
43-
$this->value = $value ?: ($name ? $this->getBoundValue($model, $name) : '');
43+
$this->value = ! is_null($value) ? $value : ($name ? $this->getBoundValue($model, $name) : '');
4444
}
4545
}

src/Views/Components/Table/Cell.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,6 @@ public function __construct(
3838
$this->showLabel = $showLabel;
3939
$this->name = $name;
4040
$this->multiline = $multiline;
41-
$this->value = $value ?: ($name ? $this->getBoundValue($model, $name) : '');
41+
$this->value = ! is_null($value) ? $value : ($name ? $this->getBoundValue($model, $name) : '');
4242
}
4343
}

src/Views/Components/TextEntry.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function __construct(
4545
$this->inline = $inline;
4646
$this->name = $name;
4747
$this->multiline = $multiline;
48-
$this->value = $value ?: ($name ? $this->getBoundValue($model, $name) : '');
48+
$this->value = ! is_null($value) ? $value : ($name ? $this->getBoundValue($model, $name) : '');
4949

5050
$this->inlineEntryLabelClass = $inlineEntryLabelClass ?: $this->frameworkConfig('inline-entry-label-class');
5151
$this->inlineEntryClass = $inlineEntryClass ?: $this->frameworkConfig('inline-entry-class');

0 commit comments

Comments
 (0)