We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 55642e8 commit 2cb7732Copy full SHA for 2cb7732
1 file changed
test/factories/item.factory.ts
@@ -16,7 +16,9 @@ export const ItemFactory = (
16
): ItemWithCreator => {
17
const { parentPath, ...item } = itemArgs;
18
const id = v4();
19
- const path = `${parentPath ? `${parentPath}.` : ''}${buildPathFromIds(id)}`;
+
20
+ const parentPrefix = parentPath ? `${parentPath}.` : '';
21
+ const path = `${parentPrefix}${buildPathFromIds(id)}`;
22
23
return {
24
type: ItemType.FOLDER,
0 commit comments