We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2954137 + 133cd03 commit d116df0Copy full SHA for d116df0
1 file changed
src/components/navbar.tsx
@@ -186,9 +186,11 @@ function NavBar({ layoutref }: NavBarProps) {
186
driveService.getFileContents(filePathData.gPath).then((fileContent) => {
187
let content;
188
if (fileType === FileType.BLOCKLY) {
189
- content = fileContent?.split('##XRPBLOCKS ');
+ content = fileContent?.split('##XRPBLOCKS ').at(1);
190
+ } else {
191
+ content = fileContent;
192
}
- const loadContent = { name: filename, content: content?.at(1)};
193
+ const loadContent = { name: filename, content: content };
194
AppMgr.getInstance().emit(EventType.EVENT_EDITOR_LOAD, JSON.stringify(loadContent));
195
});
196
0 commit comments