formatting
This commit is contained in:
parent
0bab7ae714
commit
d9ec262752
3 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 (
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue