Skip to content

Commit c400e86

Browse files
committed
Beta 12 update
1 parent a0596c9 commit c400e86

File tree

7 files changed

+4
-11
lines changed

7 files changed

+4
-11
lines changed

packages/cli/templates/template/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"devDependencies": {
3535
"@tailwindcss/typography": "^0.5.15",
3636
"@types/react": "^18.3.11",
37-
"@types/react-dom": "18.3.0",
37+
"@types/react-dom": "^18.3.0",
3838
"@typescript-eslint/eslint-plugin": "^8.8.1",
3939
"@typescript-eslint/parser": "^8.8.1",
4040
"@vitejs/plugin-react": "^4.3.2",

packages/collection_editor/src/ui/collection_editor/CollectionPropertiesEditorForm.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,6 @@ export function CollectionPropertiesEditorForm({
228228
namespace
229229
}: OnPropertyChangedParams) => {
230230

231-
console.log("!!!!!! onPropertyChanged", property)
232-
233231
const fullId = id ? getFullId(id, namespace) : undefined;
234232
const propertyPath = fullId ? idToPropertiesPath(fullId) : undefined;
235233

packages/firecms_cloud/src/api/projects.ts

-2
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ export function buildProjectsApi(host: string, getBackendAuthToken: () => Promis
269269
if (!res.ok) {
270270
throw new Error(data?.error ?? "Error creating checkout session");
271271
}
272-
console.log("createStripeNewSubscriptionLink result", data);
273272
return data.url as string;
274273
});
275274
}
@@ -290,7 +289,6 @@ export function buildProjectsApi(host: string, getBackendAuthToken: () => Promis
290289
if (!res.ok) {
291290
throw new Error(data?.error ?? "Error creating checkout session");
292291
}
293-
console.log("createStripeNewSubscriptionLink result", data);
294292
return data.url as string;
295293
});
296294
}

packages/firecms_cloud/src/hooks/useLicensesForUserController.tsx

+2-3
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,10 @@ export function useLicensesForUserController(): LicensesController {
6868
{
6969
next:
7070
async (snapshot) => {
71-
console.log("Licenses snapshot", snapshot.docs);
7271
const updatedSubscriptions = snapshot.docs
7372
.map(convertDocToLicense)
7473
.filter(Boolean);
75-
console.log("Licenses updated", updatedSubscriptions);
74+
console.debug("Licenses updated", updatedSubscriptions);
7675
setLicensesLoading(false);
7776
setLicensesLoadingError(undefined);
7877
setLicenses(updatedSubscriptions);
@@ -101,7 +100,7 @@ export function useLicensesForUserController(): LicensesController {
101100
if (!firestore || !userId)
102101
throw new Error("Firestore not initialized");
103102
const licensesRef = doc(firestore, LICENSES_COLLECTION, id);
104-
console.log("Updating license", id, license);
103+
console.debug("Updating license", id, license);
105104
return updateDoc(licensesRef, license)
106105
.then(() => {
107106
return license as ProLicense;

packages/firecms_core/src/hooks/useBuildNavigationController.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export function useBuildNavigationController<EC extends EntityCollection, USER e
212212
let shouldUpdateTopLevelNav = false;
213213
if (!areCollectionListsEqual(collectionsRef.current ?? [], resolvedCollections)) {
214214
collectionsRef.current = resolvedCollections;
215-
console.log("Collections have changed", resolvedCollections);
215+
console.debug("Collections have changed", resolvedCollections);
216216
shouldUpdateTopLevelNav = true;
217217
}
218218
if (collectionsRef.current === undefined) {

packages/firecms_core/src/routes/FireCMSRoute.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ function EntityFullScreenRoute({
202202
selectedTab={selectedTab ?? undefined}
203203
onValuesModified={(modified) => blocked.current = modified}
204204
onSaved={(params) => {
205-
console.log("Entity saved", params);
206205
const newSelectedTab = params.selectedTab;
207206
const newEntityId = params.entityId;
208207
if (newSelectedTab) {

packages/user_management/src/components/roles/RolesDetailsForm.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ export const RoleYupSchema = Yup.object().shape({
3333

3434
function canRoleBeEdited(loggedUser: User) {
3535
const loggedUserIsAdmin = loggedUser.roles?.map(r => r.id).includes("admin");
36-
console.log("loggedUserIsAdmin", loggedUser);
3736
if (!loggedUserIsAdmin) {
3837
throw new Error("Only admins can edit roles");
3938
}

0 commit comments

Comments
 (0)