mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -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;
|
||||
let parsedQuery;
|
||||
if (typeof query === 'string') {
|
||||
if (typeof query === 'string' && query.length > 0) {
|
||||
try {
|
||||
parsedQuery = JSON.parse(query);
|
||||
} catch (err) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue