-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: prettier #261
fix: prettier #261
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,12 @@ export function convertValues(schema: Schema, values: any) { | |
|
||
switch (schemaType) { | ||
case RecsType.StringArray: | ||
if (value.type === "array" && value.value[0].type === "enum") { | ||
if (value.type === "array" && value.value.length === 0) { | ||
acc[key] = []; | ||
} else if ( | ||
value.type === "array" && | ||
value.value[0].type === "enum" | ||
) { | ||
Comment on lines
+23
to
+28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Approved: Robustness improvement in handling empty arrays. The modification to explicitly handle empty arrays before processing their elements is a significant improvement. This change enhances the robustness of the Suggestion for Improvement: |
||
acc[key] = value.value.map( | ||
(item: any) => item.value.option | ||
); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Verify and potentially correct the
qualified_path
.The
qualified_path
value "dojo_starter::systems::actions::actions::moved" appears to have a redundancy with "actions::actions". Please verify if this is intentional or a typo. Correcting this could prevent potential misconfigurations or errors in referencing the manifest.