Skip to content

Commit

Permalink
[dev] adjust load data button on data screen
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdoe committed Nov 12, 2024
1 parent 5ff1f39 commit 54ec6e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/editor/src/components/DataImport.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ export default function DataImport() {
const loadData = async (fileBlob = null, fileName, editingDatasetKey) => {
let fileData = fileBlob
let fileSource = fileData?.path ?? fileName ?? externalURL
if(fileSource && typeof fileSource === 'string') fileSource = fileSource.trim();
if (fileSource && typeof fileSource === 'string') fileSource = fileSource.trim()
const fileSourceType = fileBlob ? 'file' : 'url'

// Get the raw data as text from the file
Expand Down Expand Up @@ -365,7 +365,7 @@ export default function DataImport() {
onChange={e => setExternalURL(e.target.value)}
/>
<button
className='input-group-text btn btn-primary px-4'
className='rounded-0 border-0 btn btn-primary px-4'
type='submit'
id='load-data'
onClick={() => loadData(null, externalURL, editingDataset)}
Expand Down

0 comments on commit 54ec6e4

Please sign in to comment.