fix: allow null label colors in trello json importer

Signed-off-by: Mario Jäckle <github@jacksbox.de>
This commit is contained in:
Mario Jäckle
2023-12-06 17:29:08 +01:00
committed by backportbot-nextcloud[bot]
parent e8ab1adb50
commit 363812fa4b

View File

@@ -332,7 +332,7 @@ class TrelloJsonService extends ABoardImportService {
return $return; return $return;
} }
private function translateColor(string $color): string { private function translateColor(?string $color): string {
switch ($color) { switch ($color) {
case 'red': case 'red':
return 'ff0000'; return 'ff0000';