mirror of
https://github.com/james-m-jordan/morphik-core.git
synced 2025-05-09 19:32:38 +00:00
fix linting errors
This commit is contained in:
parent
0cd5da1156
commit
873a1fe24e
1
.gitignore
vendored
1
.gitignore
vendored
@ -33,3 +33,4 @@ offload/*
|
||||
test.pdf
|
||||
|
||||
experiments/*
|
||||
ui-component/package-lock.json
|
||||
|
@ -58,6 +58,11 @@ interface QueryOptions extends SearchOptions {
|
||||
graph_name?: string;
|
||||
}
|
||||
|
||||
interface BatchUploadError {
|
||||
filename: string;
|
||||
error: string;
|
||||
}
|
||||
|
||||
const DataBridgeUI = () => {
|
||||
const [activeSection, setActiveSection] = useState('documents');
|
||||
const [documents, setDocuments] = useState<Document[]>([]);
|
||||
@ -248,7 +253,7 @@ const DataBridgeUI = () => {
|
||||
|
||||
// Check if there were any errors during batch upload
|
||||
if (result.errors && result.errors.length > 0) {
|
||||
const errorMessages = result.errors.map((err: any) =>
|
||||
const errorMessages = result.errors.map((err: BatchUploadError) =>
|
||||
`${err.filename}: ${err.error}`
|
||||
).join('\n');
|
||||
setError(`Some files failed to upload:\n${errorMessages}`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user