fix: Add typescript cast to fix type error

Change-type: patch
Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
Cameron Diver 2018-10-18 15:14:12 +01:00
parent d939b2b9e6
commit e04de0a170
No known key found for this signature in database
GPG Key ID: 69264F9C923F55C1

View File

@ -458,5 +458,5 @@ export function normalizeLabels(
});
const balenaLabels = _.pickBy(labels, (_v, k) => _.startsWith(k, 'io.balena.'));
const otherLabels = _.pickBy(labels, (_v, k) => !(_.startsWith(k, 'io.balena.') || _.startsWith(k, 'io.resin.')));
return _.assign({}, otherLabels, legacyLabels, balenaLabels);
return _.assign({}, otherLabels, legacyLabels, balenaLabels) as { [key: string]: string };
}