mirror of
https://github.com/usebruno/bruno.git
synced 2024-11-29 11:23:57 +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
|
// Recursive function to parse the collection items and create files/folders
|
||||||
const parseCollectionItems = (items = [], currentPath) => {
|
const parseCollectionItems = (items = [], currentPath) => {
|
||||||
items.forEach(item => {
|
items.forEach(item => {
|
||||||
if (item.type === 'http-request') {
|
if (['http-request', 'graphql-request'].includes(item.type)) {
|
||||||
const content = jsonToBru(item);
|
const content = jsonToBru(item);
|
||||||
const filePath = path.join(currentPath, `${item.name}.bru`);
|
const filePath = path.join(currentPath, `${item.name}.bru`);
|
||||||
fs.writeFileSync(filePath, content);
|
fs.writeFileSync(filePath, content);
|
||||||
|
Loading…
Reference in New Issue
Block a user