Skip to content

fix/528 default 0#764

Merged
guilbep merged 1 commit intodevfrom
fix/528-default-0
Mar 30, 2026
Merged

fix/528 default 0#764
guilbep merged 1 commit intodevfrom
fix/528-default-0

Conversation

@BenBotros
Copy link
Copy Markdown
Contributor

What does this change?

Guards the formDefaults computed property against a undefined validatedTotals before accessing total_fte, and early-returns undefined when the store value is not yet available.

Why is this needed?

Previously, Math.round(fte) could be called with undefined when validatedTotals had not yet been populated, resulting in NaN being written as the default field value. This caused fields with defaultFrom: 'total_fte' to render with NaN instead of 0 or no value.

Type of change

Please check the type that applies:

  • 🐛 Bug fix
  • ✨ New feature
  • 📝 Documentation update
  • 🎨 Design/UI improvement
  • 🔧 Configuration change
  • 🧹 Code cleanup

Related issues

@BenBotros BenBotros linked an issue Mar 27, 2026 that may be closed by this pull request
1 task
@BenBotros BenBotros requested a review from guilbep March 27, 2026 13:33
@BenBotros BenBotros self-assigned this Mar 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

⚡ Lighthouse CI Results

📊 View full report

Performance scores will be available in the artifacts.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Mar 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 61.09%. Comparing base (c3ba017) to head (839ddba).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #764   +/-   ##
=======================================
  Coverage   61.09%   61.09%           
=======================================
  Files         127      127           
  Lines       10523    10523           
=======================================
  Hits         6429     6429           
  Misses       4094     4094           
Flag Coverage Δ
backend 61.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@guilbep guilbep force-pushed the fix/528-default-0 branch from 354e3ec to 87d554b Compare March 30, 2026 07:17
@guilbep guilbep force-pushed the fix/528-default-0 branch from 87d554b to 839ddba Compare March 30, 2026 07:33
@github-actions
Copy link
Copy Markdown
Contributor

⚡ Lighthouse CI Results

📊 View full report

Performance scores will be available in the artifacts.

@guilbep guilbep merged commit 18a76e0 into dev Mar 30, 2026
11 checks passed
@guilbep guilbep deleted the fix/528-default-0 branch March 30, 2026 07:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] (External AI) Add default value for # Users coming from Headcount

3 participants