We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9de6b32 commit d47a102Copy full SHA for d47a102
src/ui-carto/index.common.ts
@@ -154,6 +154,9 @@ export function getFileName(str: string): string {
154
155
export function getRelativePathToApp(str: string) {
156
const filePath = getFileName(str);
157
+ if (!currentAppFolder) {
158
+ currentAppFolder = knownFolders.currentApp().path;
159
+ }
160
const toReplace = currentAppFolder.split('/').slice(0, -1).join('/');
161
if (filePath.indexOf(toReplace) === 0) {
162
return filePath.replace(toReplace, '').slice(1);
0 commit comments