Skip to content

Commit

Permalink
fix: show all types when no preferences saved
Browse files Browse the repository at this point in the history
Signed-off-by: Jana Peper <jana.peper@nextcloud.com>
  • Loading branch information
janepie committed Dec 9, 2024
1 parent 3ef601c commit 6e42792
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/private/TaskProcessing/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ private function _getTaskTypes(): array {
*/
private function _getTaskTypeSettings(): array {
$json = $this->config->getAppValue('core', 'ai.taskprocessing_type_preferences', '');
if ($json === '') {
return [];
}
return json_decode($json, true);
}

Expand Down

0 comments on commit 6e42792

Please sign in to comment.