Merged
Conversation
...src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx
Outdated
Show resolved
Hide resolved
Contributor
Greptile OverviewGreptile SummaryFixed a runtime error in
Confidence Score: 4/5
Important Files ChangedFile Analysis
Sequence DiagramsequenceDiagram
participant User
participant CurrencyFieldInput
participant useCurrencyField
participant FieldDefinition
participant CurrencyInput
User->>CurrencyFieldInput: Render component
CurrencyFieldInput->>useCurrencyField: Get field data
useCurrencyField-->>CurrencyFieldInput: Returns draftValue, defaultValue
alt defaultValue is undefined
CurrencyFieldInput->>CurrencyFieldInput: Optional chaining prevents error
Note over CurrencyFieldInput: defaultCurrencyCodeWithoutSQLQuotes = undefined
else defaultValue exists
CurrencyFieldInput->>CurrencyFieldInput: Extract currencyCode and remove SQL quotes
Note over CurrencyFieldInput: defaultCurrencyCodeWithoutSQLQuotes = value
end
CurrencyFieldInput->>CurrencyFieldInput: Determine currencyCode (draft > default > USD)
CurrencyFieldInput->>CurrencyInput: Render with currencyCode
User->>CurrencyInput: Enter amount
CurrencyInput->>CurrencyFieldInput: handleChange(newValue)
CurrencyFieldInput->>useCurrencyField: setDraftValue({amount, currencyCode})
|
...src/modules/object-record/record-field/ui/meta-types/input/components/CurrencyFieldInput.tsx
Outdated
Show resolved
Hide resolved
Contributor
|
🚀 Preview Environment Ready! Your preview environment is available at: http://bore.pub:22768 This environment will automatically shut down when the PR is closed or after 5 hours. |
93f4e74 to
4a4b750
Compare
NotYen
pushed a commit
to NotYen/twenty-ym
that referenced
this pull request
Dec 23, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Currency field used to have default value, but default value on field is not mandatory. Defaulf default value logic has been removed.
Also test all field type input when empty. ✅