Skip to content

Commit 4316145

Browse files
authored
Merge pull request #44 from DataFlowAnalysis/quickDFDFix
Fix bug that prevented DFD from loading on the first try
2 parents ee26199 + 7e4054f commit 4316145

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/webEditor/src/features/serialize/loadDFDandDD.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,16 @@ export class LoadDFDandDDCommand extends Command {
8080
const dataflowFileContent = await this.readFileContent(dataflowFile);
8181
const dictionaryFileContent = await this.readFileContent(dictionaryFile);
8282

83+
setModelFileName(dataflowFile.name.substring(0, dataflowFile.name.lastIndexOf(".")));
84+
8385
// Send each file's content in separate WebSocket messages
8486
sendMessage(
8587
"DFD:" +
8688
dataflowFileContent +
8789
"\n:DD:\n" +
8890
dictionaryFileContent,
8991
);
90-
setModelFileName(dataflowFile.name.substring(0, dataflowFile.name.lastIndexOf(".")));
92+
9193
setFileNameInPageTitle(dataflowFile.name);
9294
return context.root;
9395
} catch (error) {

0 commit comments

Comments
 (0)