Skip to content

Commit

Permalink
rm comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx committed Nov 24, 2024
1 parent 653569e commit 0a24dd1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions web/src/app/admin/connectors/[connector]/AddConnectorPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -266,16 +266,8 @@ export default function AddConnector({

// Google sites-specific handling
if (connector == "google_sites") {
if (!selectedFiles) {
setPopup({
message: "No file selected for upload",
type: "error",
});
return;
}

const response = await submitGoogleSite(
selectedFiles, // Pass the file as an array
selectedFiles,
values?.base_url,
setPopup,
advancedConfiguration.refreshFreq,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ interface FileInputProps {
label: string;
optional?: boolean;
description?: string;
isZip?: boolean; // New prop to determine if it's a zip file
isZip?: boolean;
}

export default function FileInput({
Expand Down

0 comments on commit 0a24dd1

Please sign in to comment.