Skip to content

Commit

Permalink
Merge pull request #1431 from bcgov/fix/kevin-1400
Browse files Browse the repository at this point in the history
fix: ci fuel for other fuel type
  • Loading branch information
kevin-hashimoto authored Dec 12, 2024
2 parents bce4b4e + ced2f61 commit 227b166
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions frontend/src/views/FuelSupplies/AddEditFuelSupplies.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,12 @@ export const AddEditFuelSupplies = () => {
const fuelCategoryOptions = selectedFuelType.fuelCategories.map(
(item) => item.fuelCategory
)
if (selectedFuelType.fuelType !== 'Other') {
params.node.setDataValue(
'fuelCategory',
fuelCategoryOptions[0] ?? null
)
}

params.node.setDataValue(
'fuelCategory',
fuelCategoryOptions[0] ?? null
)

const fuelCodeOptions = selectedFuelType.fuelCodes.map(
(code) => code.fuelCode
)
Expand Down

0 comments on commit 227b166

Please sign in to comment.