refactor: remove debug console logs from selection cell components and database migration table column change
This commit is contained in:
@@ -11,17 +11,17 @@ CREATE TABLE finance_rate_cards
|
|||||||
);
|
);
|
||||||
|
|
||||||
-- Dropping existing finance_project_rate_card_roles table
|
-- Dropping existing finance_project_rate_card_roles table
|
||||||
DROP TABLE IF EXISTS finance_project_rate_card_roles;
|
DROP TABLE IF EXISTS finance_project_rate_card_roles CASCADE;
|
||||||
-- Creating table with single id primary key
|
-- Creating table with single id primary key
|
||||||
CREATE TABLE finance_project_rate_card_roles
|
CREATE TABLE finance_project_rate_card_roles
|
||||||
(
|
(
|
||||||
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
id UUID PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||||
project_id UUID NOT NULL REFERENCES projects (id) ON DELETE CASCADE,
|
project_id UUID NOT NULL REFERENCES projects (id) ON DELETE CASCADE,
|
||||||
role_id UUID NOT NULL REFERENCES roles (id) ON DELETE CASCADE,
|
job_title_id UUID NOT NULL REFERENCES job_titles (id) ON DELETE CASCADE,
|
||||||
rate DECIMAL(10, 2) NOT NULL CHECK (rate >= 0),
|
rate DECIMAL(10, 2) NOT NULL CHECK (rate >= 0),
|
||||||
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
updated_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
CONSTRAINT unique_project_role UNIQUE (project_id, role_id)
|
CONSTRAINT unique_project_role UNIQUE (project_id, job_title_id)
|
||||||
);
|
);
|
||||||
|
|
||||||
-- Dropping existing finance_rate_card_roles table
|
-- Dropping existing finance_rate_card_roles table
|
||||||
|
|||||||
@@ -23,11 +23,11 @@ const CustomColumnSelectionCell = ({
|
|||||||
const { t } = useTranslation('task-list-table');
|
const { t } = useTranslation('task-list-table');
|
||||||
|
|
||||||
// Debug the selectionsList and value
|
// Debug the selectionsList and value
|
||||||
console.log('CustomColumnSelectionCell props:', {
|
// console.log('CustomColumnSelectionCell props:', {
|
||||||
selectionsList,
|
// selectionsList,
|
||||||
value,
|
// value,
|
||||||
selectionsCount: selectionsList?.length || 0
|
// selectionsCount: selectionsList?.length || 0
|
||||||
});
|
// });
|
||||||
|
|
||||||
// Set initial selection based on value prop
|
// Set initial selection based on value prop
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|||||||
@@ -854,10 +854,10 @@ const SelectionFieldCell: React.FC<{
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (!loggedInfo) {
|
if (!loggedInfo) {
|
||||||
console.log('Selection column data:', {
|
// console.log('Selection column data:', {
|
||||||
columnKey,
|
// columnKey,
|
||||||
selectionsList,
|
// selectionsList,
|
||||||
});
|
// });
|
||||||
setLoggedInfo(true);
|
setLoggedInfo(true);
|
||||||
}
|
}
|
||||||
}, [columnKey, selectionsList, loggedInfo]);
|
}, [columnKey, selectionsList, loggedInfo]);
|
||||||
|
|||||||
Reference in New Issue
Block a user