1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-14 00:19:16 +01:00

fix: add default empty array to strategies from db

This commit is contained in:
Fredrik Oseberg 2021-04-08 11:38:50 +02:00
parent 2850052cc5
commit 772e729869

View File

@ -20,7 +20,7 @@ const mapRow = row => ({
createdAt: row.created_at,
updatedAt: row.updated_at,
description: row.description,
strategies: row.strategies,
strategies: row.strategies || [],
createdBy: row.created_by,
url: row.url,
color: row.color,