mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-27 11:51:29 +01:00
Better recent work/env/req logic
This commit is contained in:
@@ -38,7 +38,7 @@ export function GraphQLEditor({ defaultValue, onChange, baseRequest, ...extraEdi
|
||||
const operationName = p.operationName;
|
||||
return { query, variables, operationName };
|
||||
} catch (err) {
|
||||
return { query: 'failed to parse' };
|
||||
return { query: '' };
|
||||
}
|
||||
}, [defaultValue]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user