mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Make request-api-resources flatter in implementation (#6802)
* Make request-api-resources flatter in implementation Signed-off-by: Sebastian Malton <sebastian@malton.name> * More improvements to requestApiResources - Also move files to better places Signed-off-by: Sebastian Malton <sebastian@malton.name> * Rename iter.pipeline as iter.chain Signed-off-by: Sebastian Malton <sebastian@malton.name> Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
1 parent
4dac9a8b2b
commit
a83259b70a
15 files changed
+186
-97
No files matched your search
@@ -86,7 +86,7 @@ export class AddSecretDialog extends React.Component<AddSecretDialogProps> {
|
||||
};
|
||||
|
||||
private getDataFromFields = (fields: SecretTemplateField[] = [], processValue: (val: string) => string = (val => val)) => {
|
||||
return iter.pipeline(fields.values())
|
||||
return iter.chain(fields.values())
|
||||
.filterMap(({ key, value }) => (
|
||||
value
|
||||
? [key, processValue(value)] as const
|
||||
|
||||
Reference in new issue
Block a user