Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
lorem--ipsum committed Oct 19, 2023
1 parent 5312138 commit 645bb6e
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions web-console/src/views/load-data-view/load-data-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3177,9 +3177,25 @@ export class LoadDataView extends React.PureComponent<LoadDataViewProps, LoadDat
label: `Allow concurrent ${
appendToExisting ? 'append' : 'replace'
} tasks (experimental)`,
defaultValue: isStreamingSpec(spec) ? true : undefined,
valueAdjustment: v => (v ? (appendToExisting ? 'APPEND' : 'REPLACE') : undefined),
adjustValue: v => v === (appendToExisting ? 'APPEND' : 'REPLACE'),
defaultValue: undefined,
valueAdjustment: v => {
if (!v) return undefined;

if (isStreamingSpec(spec)) {
return 'APPEND';
} else {
return appendToExisting ? 'APPEND' : 'REPLACE';
}
},
adjustValue: v => {
if (v === undefined) return false;

if (isStreamingSpec(spec)) {
return v === 'APPEND';
}

return v === (appendToExisting ? 'APPEND' : 'REPLACE');
},
info: <p>Allows or forbids concurrent tasks.</p>,
},
]}
Expand Down

0 comments on commit 645bb6e

Please sign in to comment.