mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-02-10 08:26:38 +00:00
minor fixes for frontend console errors w/ burnettk
This commit is contained in:
parent
59ddc8b016
commit
44687327ae
@ -125,6 +125,7 @@ export default function BaseInputTemplate<
|
|||||||
placeholder={DATE_FORMAT_FOR_DISPLAY}
|
placeholder={DATE_FORMAT_FOR_DISPLAY}
|
||||||
helperText={commonAttributes.helperText}
|
helperText={commonAttributes.helperText}
|
||||||
type="text"
|
type="text"
|
||||||
|
labelText=""
|
||||||
size="md"
|
size="md"
|
||||||
value={dateValue}
|
value={dateValue}
|
||||||
autocomplete="off"
|
autocomplete="off"
|
||||||
|
@ -41,6 +41,9 @@ const convertDateObjectToFormattedString = (dateObject: Date) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const dateStringToYMDFormat = (dateString: string) => {
|
const dateStringToYMDFormat = (dateString: string) => {
|
||||||
|
if (dateString === undefined || dateString === null) {
|
||||||
|
return dateString;
|
||||||
|
}
|
||||||
if (dateString && dateString.match(/^\d{4}-\d{2}-\d{2}$/)) {
|
if (dateString && dateString.match(/^\d{4}-\d{2}-\d{2}$/)) {
|
||||||
return dateString;
|
return dateString;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user