Skip to content

Commit c3bf158

Browse files
author
Ives van Hoorne
committed
Put boolean back for configurations
1 parent b1cd6b1 commit c3bf158

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

packages/app/src/app/store/actions.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ export function setUrlOptions({ state, router, utils }) {
108108

109109
export const setSandboxConfigOptions = ({ state }) => {
110110
const config = state.get('editor.parsedConfigurations.sandbox');
111+
console.log(config);
111112

112113
if (config && config.parsed) {
113114
const view = config.parsed.view;

packages/app/src/app/store/modules/editor/getters.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ export function currentTab() {
5050
// }
5151

5252
export function parsedConfigurations() {
53+
console.log(this.currentSandbox.toJSON());
54+
console.log(parseConfigurations(this.currentSandbox));
5355
return parseConfigurations(this.currentSandbox);
5456
}
5557

packages/common/sandbox/modules.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ export function getModulesInDirectory(
3333
}
3434

3535
// Split path
36-
const splitPath = path.replace(/^.\//, '').split('/');
36+
const splitPath = path
37+
.replace(/^.\//, '')
38+
.split('/')
39+
.filter(Boolean);
3740

3841
const foundDirectoryShortid = splitPath.reduce(
3942
(dirId: ?string, pathPart: string, i: number) => {

0 commit comments

Comments
 (0)