Skip to content

Commit

Permalink
Possible fix for #14915
Browse files Browse the repository at this point in the history
Signed-off-by: snipe <[email protected]>
  • Loading branch information
snipe committed Jun 20, 2024
1 parent 077a694 commit a1ff35f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Importer/AssetImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public function __construct($filename)
{
parent::__construct($filename);

if (!is_null(Statuslabel::first())) {
$this->defaultStatusLabelId = Statuslabel::first();

if (!is_null(Statuslabel::deployable()->first())) {
$this->defaultStatusLabelId = Statuslabel::deployable()->first()->id;
}
}
Expand Down

0 comments on commit a1ff35f

Please sign in to comment.