Skip to content

Commit

Permalink
commit 28 nov 15h05
Browse files Browse the repository at this point in the history
  • Loading branch information
bturcotte committed Nov 28, 2024
1 parent 000dc39 commit c6733d1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/Tabs/StartTab.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@ const StartTab = ({ disabled, record, updateRecord, handleUpdateRecord, userID }
const regionInfo = regions[region];
const [showShareRecord, setShowShareRecord] = useState(false)
const mounted = useRef(false);
const themes = themesList[0].find(e => e === language);
const themes = themesList.find(e => e === language);
if (themes) {
const theme = themes[language];
}



const updateResourceType = (value) => {
if(Array.isArray(value) && value.length === 1 && value.includes('other')){
Expand Down Expand Up @@ -283,7 +288,7 @@ const StartTab = ({ disabled, record, updateRecord, handleUpdateRecord, userID }
defaultValue="oceanographic"
onChange={(v) => updateResourceType(v)}
options={["oceanographic", "biological", "other"]}
optionLabels={themes}
optionLabels={theme}

disabled={disabled}
/>
Expand Down

0 comments on commit c6733d1

Please sign in to comment.