Skip to content

Commit 427b0e8

Browse files
committed
Fix new drive
1 parent 57328d3 commit 427b0e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

data-browser/src/components/NewInstanceButton/useCreateAndNavigate.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ export function useCreateAndNavigate(klass: string, parent?: string) {
3434
/** Do not set a parent for the new resource. Useful for top-level resources */
3535
noParent?: boolean,
3636
): Promise<Resource> => {
37-
const subject = store.createSubject(className, parent);
37+
const subject = store.createSubject(
38+
className,
39+
noParent ? undefined : parent,
40+
);
3841
const resource = new Resource(subject, true);
3942

4043
await Promise.all([

0 commit comments

Comments
 (0)