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):
|
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
|
||||||
|
|
|
||||||
|
|
@ -80,7 +80,7 @@ export default function ParameterComponent({
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const groupedObj = groupByFamily(myData, tooltipTitle);
|
const groupedObj = groupByFamily(myData, tooltipTitle);
|
||||||
|
|
||||||
refHtml.current = groupedObj.map((item, i) => (
|
refHtml.current = groupedObj.map((item, i) => (
|
||||||
<span
|
<span
|
||||||
key={getRandomKeyByssmm()}
|
key={getRandomKeyByssmm()}
|
||||||
|
|
@ -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 (
|
||||||
|
|
|
||||||
|
|
@ -810,9 +810,9 @@ export function getRandomName(
|
||||||
return toTitleCase(final_name);
|
return toTitleCase(final_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue