formatting

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-06-23 16:51:54 -03:00
commit d9ec262752
3 changed files with 7 additions and 8 deletions

View file

@ -159,8 +159,6 @@ def instantiate_vectorstore(class_object, params):
def instantiate_documentloader(class_object, params):
if "file_filter" in params:
# file_filter will be a string but we need a function
# that will be used to filter the files using file_filter

View file

@ -80,7 +80,7 @@ export default function ParameterComponent({
useEffect(() => {
const groupedObj = groupByFamily(myData, tooltipTitle);
refHtml.current = groupedObj.map((item, i) => (
<span
key={getRandomKeyByssmm()}
@ -105,7 +105,9 @@ export default function ParameterComponent({
? item.type.split(", ").map((el, i) => (
<React.Fragment key={el + i}>
<span>
{i === item.type.split(", ").length - 1 ? el : (el += `, `)}
{i === item.type.split(", ").length - 1
? el
: (el += `, `)}
</span>
{i % 2 === 0 && i > 0 && <br />}
</React.Fragment>
@ -115,7 +117,6 @@ export default function ParameterComponent({
</span>
</span>
));
}, [tooltipTitle]);
return (

View file

@ -810,9 +810,9 @@ export function getRandomName(
return toTitleCase(final_name);
}
export function getRandomKeyByssmm(): string{
export function getRandomKeyByssmm(): string {
const now = new Date();
const seconds = String(now.getSeconds()).padStart(2, '0');
const milliseconds = String(now.getMilliseconds()).padStart(3, '0');
const seconds = String(now.getSeconds()).padStart(2, "0");
const milliseconds = String(now.getMilliseconds()).padStart(3, "0");
return seconds + milliseconds;
}