payload 1.0.35 → 1.0.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
## [1.0.36](https://github.com/payloadcms/payload/compare/v1.0.35...v1.0.36) (2022-09-10)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* bug with account view ([ada1871](https://github.com/payloadcms/payload/commit/ada1871993bae92bc7a30f48029b437d63eb3871))
|
|
7
|
+
|
|
1
8
|
## [1.0.35](https://github.com/payloadcms/payload/compare/v1.0.34...v1.0.35) (2022-09-10)
|
|
2
9
|
|
|
3
10
|
|
package/components/elements.ts
CHANGED
|
@@ -2,4 +2,4 @@ export { default as Button } from '../dist/admin/components/elements/Button';
|
|
|
2
2
|
export { default as Card } from '../dist/admin/components/elements/Card';
|
|
3
3
|
export { default as Eyebrow } from '../dist/admin/components/elements/Eyebrow';
|
|
4
4
|
export { default as Nav } from '../dist/admin/components/elements/Nav';
|
|
5
|
-
export {
|
|
5
|
+
export { Gutter } from '../dist/admin/components/elements/Gutter';
|
|
@@ -24,7 +24,7 @@ const AccountView = () => {
|
|
|
24
24
|
}, } = {}, } = {
|
|
25
25
|
user: 'users',
|
|
26
26
|
}, } = useConfig();
|
|
27
|
-
const collection = collections.find((coll) => coll.slug ===
|
|
27
|
+
const collection = collections.find((coll) => coll.slug === adminUser);
|
|
28
28
|
const { fields } = collection;
|
|
29
29
|
const collectionPermissions = (_a = permissions === null || permissions === void 0 ? void 0 : permissions.collections) === null || _a === void 0 ? void 0 : _a[adminUser];
|
|
30
30
|
const [{ data }] = usePayloadAPI(`${serverURL}${api}/${collection === null || collection === void 0 ? void 0 : collection.slug}/${user === null || user === void 0 ? void 0 : user.id}?depth=0`, { initialParams: { 'fallback-locale': 'null' } });
|