refactor(base): rename baseId to pageId in client components

This commit is contained in:
Philipinho
2026-04-27 01:44:11 +01:00
parent 3e9f26a8dd
commit f56af5e6b4
12 changed files with 56 additions and 56 deletions
@@ -72,7 +72,7 @@ export function CellFile({
try {
const formData = new FormData();
formData.append("file", file);
formData.append("baseId", property.baseId);
formData.append("pageId", property.pageId);
const res = await api.post<FileValue>(
"/bases/files/upload",
@@ -98,7 +98,7 @@ export function CellFile({
setUploading(false);
onCommit(newFiles.length > 0 ? newFiles : null);
},
[files, property.baseId, onCommit],
[files, property.pageId, onCommit],
);
const handleKeyDown = useCallback(
@@ -105,7 +105,7 @@ export function CellMultiSelect({
const newChoices = [...choices, newChoice];
updatePropertyMutation.mutate({
propertyId: property.id,
baseId: property.baseId,
pageId: property.pageId,
typeOptions: {
...typeOptions,
choices: newChoices,
@@ -44,7 +44,7 @@ export function CellPage({
onCancel,
}: CellPageProps) {
const pageId = parsePageId(value);
const { data: base } = useBaseQuery(property.baseId);
const { data: base } = useBaseQuery(property.pageId);
const ids = useMemo(() => (pageId ? [pageId] : []), [pageId]);
const { pages } = useResolvedPages(ids);
@@ -102,7 +102,7 @@ export function CellSelect({
const newChoices = [...choices, newChoice];
updatePropertyMutation.mutate({
propertyId: property.id,
baseId: property.baseId,
pageId: property.pageId,
typeOptions: {
...typeOptions,
choices: newChoices,