mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Account for null asset in factory state
This commit is contained in:
parent
b63962e90b
commit
6b6e18695f
|
@ -20,7 +20,7 @@ class LicenseSeatFactory extends Factory
|
|||
{
|
||||
return $this->state(function () use ($asset) {
|
||||
return [
|
||||
'asset_id' => $asset->id,
|
||||
'asset_id' => $asset->id ?? Asset::factory(),
|
||||
];
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue