mirror of
https://github.com/elastic/kibana.git
synced 2025-04-25 02:09:32 -04:00
[ES-ARCHIVER] Fix bug when query flag is empty (#77983)
This commit is contained in:
parent
4dc0c128ce
commit
13bd34e2da
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ export function runCli() {
|
||||||
|
|
||||||
const query = flags.query;
|
const query = flags.query;
|
||||||
let parsedQuery;
|
let parsedQuery;
|
||||||
if (typeof query === 'string') {
|
if (typeof query === 'string' && query.length > 0) {
|
||||||
try {
|
try {
|
||||||
parsedQuery = JSON.parse(query);
|
parsedQuery = JSON.parse(query);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue