fix: remove snake to normal case from export flow

This commit is contained in:
Gabriel Almeida 2023-05-09 13:19:53 -03:00
commit 2c836c1950

View file

@ -99,7 +99,7 @@ export function TabsProvider({ children }: { children: ReactNode }) {
// create a link element and set its properties // create a link element and set its properties
const link = document.createElement("a"); const link = document.createElement("a");
link.href = jsonString; link.href = jsonString;
link.download = `${normalCaseToSnakeCase(flows[tabIndex].name)}.json`; link.download = `${flows[tabIndex].name}.json`;
// simulate a click on the link element to trigger the download // simulate a click on the link element to trigger the download
link.click(); link.click();