diff --git a/resources/views/livewire/devices/configure.blade.php b/resources/views/livewire/devices/configure.blade.php
index b6d2da3..7a90456 100644
--- a/resources/views/livewire/devices/configure.blade.php
+++ b/resources/views/livewire/devices/configure.blade.php
@@ -17,7 +17,7 @@ new class extends Component {
// Playlist properties
public $playlists;
public $playlist_name;
- public $selected_weekdays = [];
+ public $selected_weekdays = null;
public $active_from;
public $active_until;
@@ -74,7 +74,7 @@ new class extends Component {
{
$this->validate([
'playlist_name' => 'required|string|max:255',
- 'selected_weekdays' => 'array',
+ 'selected_weekdays' => 'nullable|array',
'active_from' => 'nullable|date_format:H:i',
'active_until' => 'nullable|date_format:H:i',
]);
@@ -226,10 +226,10 @@ new class extends Component {
-
+
-
+
diff --git a/resources/views/livewire/plugins/receipt.blade.php b/resources/views/livewire/plugins/receipt.blade.php
index 736584f..8f97594 100644
--- a/resources/views/livewire/plugins/receipt.blade.php
+++ b/resources/views/livewire/plugins/receipt.blade.php
@@ -17,7 +17,7 @@ new class extends Component {
public $data_payload;
public array $checked_devices = [];
public string $playlist_name = '';
- public array $selected_weekdays = [];
+ public array|null $selected_weekdays = null;
public string $active_from = '';
public string $active_until = '';
public string $selected_playlist = '';
@@ -67,7 +67,7 @@ new class extends Component {
'blade_code' => 'nullable|string',
'checked_devices' => 'array',
'playlist_name' => 'required_if:selected_playlist,new|string|max:255',
- 'selected_weekdays' => 'array',
+ 'selected_weekdays' => 'nullable|array',
'active_from' => 'nullable|date_format:H:i',
'active_until' => 'nullable|date_format:H:i',
'selected_playlist' => 'nullable|string',
@@ -202,7 +202,7 @@ HTML;
@if(count($checked_devices) === 1)
-
@foreach($this->getDevicePlaylists($checked_devices[0]) as $playlist)