[ML] Fixing file data visualizer override arguments (#60627)
This commit is contained in:
parent
304b322a47
commit
a0730f7951
|
@ -66,6 +66,10 @@ export function createUrlOverrides(overrides, originalSettings) {
|
|||
) {
|
||||
formattedOverrides.format = originalSettings.format;
|
||||
}
|
||||
|
||||
if (Array.isArray(formattedOverrides.column_names)) {
|
||||
formattedOverrides.column_names = formattedOverrides.column_names.join();
|
||||
}
|
||||
}
|
||||
|
||||
if (formattedOverrides.format === '' && originalSettings.format === 'semi_structured_text') {
|
||||
|
@ -82,11 +86,6 @@ export function createUrlOverrides(overrides, originalSettings) {
|
|||
formattedOverrides.column_names = '';
|
||||
}
|
||||
|
||||
// escape grok pattern as it can contain bad characters
|
||||
if (formattedOverrides.grok_pattern !== '') {
|
||||
formattedOverrides.grok_pattern = encodeURIComponent(formattedOverrides.grok_pattern);
|
||||
}
|
||||
|
||||
if (formattedOverrides.lines_to_sample === '') {
|
||||
formattedOverrides.lines_to_sample = overrides.linesToSample;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue