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): def instantiate_documentloader(class_object, params):
if "file_filter" in params: if "file_filter" in params:
# file_filter will be a string but we need a function # file_filter will be a string but we need a function
# that will be used to filter the files using file_filter # that will be used to filter the files using file_filter

View file

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

View file

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