Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: update default value handling for dynamic defaults#17609

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
jaaydenh merged 7 commits intomainfromjaaydenh/default-values-update
May 6, 2025

Conversation

jaaydenh
Copy link
Contributor

@jaaydenhjaaydenh self-assigned thisApr 29, 2025
Comment on lines 208 to 231
const selectedOptions: Option[] = JSON.parse(value).map((val: string) => {
const option = parameter.options.find((o) => o.value.value === val);
return {
value: val,
label: option?.name || val,
disable: false,
};
});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this is screaming for some sort of typing issue here. how confident are we thatJSON.parse(value) will actually always return astring[] here?

jaaydenh reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Improved

@jaaydenhjaaydenhforce-pushed thejaaydenh/default-values-update branch fromc3d08ef tof61fd0aCompareMay 2, 2025 17:13
@jaaydenhjaaydenh requested a review fromaslilacMay 2, 2025 17:14
@jaaydenhjaaydenh merged commitec003b7 intomainMay 6, 2025
29 checks passed
@jaaydenhjaaydenh deleted the jaaydenh/default-values-update branchMay 6, 2025 10:40
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 6, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@aslilacaslilacaslilac approved these changes

@EmyrkEmyrkAwaiting requested review from Emyrk

Assignees

@jaaydenhjaaydenh

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Frontend default value handling
2 participants
@jaaydenh@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp