mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-25 17:33:28 +01:00
fix: fixed bug where gql imports were not working
This commit is contained in:
parent
c55f9d42da
commit
efd15838aa
@ -307,7 +307,7 @@ const registerRendererEventHandlers = (mainWindow, watcher, lastOpenedCollection
|
||||
// Recursive function to parse the collection items and create files/folders
|
||||
const parseCollectionItems = (items = [], currentPath) => {
|
||||
items.forEach(item => {
|
||||
if (item.type === 'http-request') {
|
||||
if (['http-request', 'graphql-request'].includes(item.type)) {
|
||||
const content = jsonToBru(item);
|
||||
const filePath = path.join(currentPath, `${item.name}.bru`);
|
||||
fs.writeFileSync(filePath, content);
|
||||
|
Loading…
Reference in New Issue
Block a user