mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-11 23:42:54 +00:00
fix: Add typescript cast to fix type error
Change-type: patch Signed-off-by: Cameron Diver <cameron@resin.io>
This commit is contained in:
parent
d939b2b9e6
commit
e04de0a170
@ -458,5 +458,5 @@ export function normalizeLabels(
|
|||||||
});
|
});
|
||||||
const balenaLabels = _.pickBy(labels, (_v, k) => _.startsWith(k, 'io.balena.'));
|
const balenaLabels = _.pickBy(labels, (_v, k) => _.startsWith(k, 'io.balena.'));
|
||||||
const otherLabels = _.pickBy(labels, (_v, k) => !(_.startsWith(k, 'io.balena.') || _.startsWith(k, 'io.resin.')));
|
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 };
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user