Skip to content

Commit b77cbba

Browse files
chore(examples): add missing prefix to storage initial values (#6519)
1 parent 42667ad commit b77cbba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

examples/next-app-router/src/app/storage-browser/storage-browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
} from '@aws-amplify/ui-react-storage/browser';
55
import '@aws-amplify/ui-react-storage/styles.css';
66
import {
7-
MockHandlers,
87
InitialValues,
8+
MockHandlers,
99
} from '@aws-amplify/ui-test-utils/storage-browser';
1010

1111
export const PREFIXES = {
@@ -39,6 +39,7 @@ export const INITIAL_VALUES: InitialValues = {
3939
type: 'FOLDER',
4040
},
4141
],
42+
[`${PREFIXES.base}${PREFIXES.nested}${PREFIXES.deeplyNested}`]: [],
4243
},
4344
};
4445

examples/react-router/src/storage-browser/storage-browser.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import {
44
} from '@aws-amplify/ui-react-storage/browser';
55
import '@aws-amplify/ui-react-storage/styles.css';
66
import {
7-
MockHandlers,
87
InitialValues,
8+
MockHandlers,
99
} from '@aws-amplify/ui-test-utils/storage-browser';
1010

1111
export const PREFIXES = {
@@ -39,6 +39,7 @@ export const INITIAL_VALUES: InitialValues = {
3939
type: 'FOLDER',
4040
},
4141
],
42+
[`${PREFIXES.base}${PREFIXES.nested}${PREFIXES.deeplyNested}`]: [],
4243
},
4344
};
4445

0 commit comments

Comments
 (0)