Fix/opportunities board (#2610)
* WIP * wip * update pipelineStepId * rename pipeline stage to pipeline step * rename pipelineProgress to Opportunity * fix UUID type not queried * fix boardColumnTotal * fix micros * fixing filters, sorts and fields * wip * wip * Fix opportunity board re-render --------- Co-authored-by: Lucas Bordeau <bordeau.lucas@gmail.com> Co-authored-by: bosiraphael <raphael.bosi@gmail.com>
This commit is contained in:
@@ -22,9 +22,12 @@ export const RecordTableEffect = () => {
|
||||
});
|
||||
|
||||
const {
|
||||
mainIdentifierMapper,
|
||||
basePathToShowPage,
|
||||
mainIdentifierFieldMetadataId,
|
||||
labelIdentifierFieldPaths,
|
||||
imageIdentifierUrlField,
|
||||
imageIdentifierUrlPrefix,
|
||||
imageIdentifierFormat,
|
||||
} = useObjectMainIdentifier(objectMetadataItem);
|
||||
|
||||
const { columnDefinitions, filterDefinitions, sortDefinitions } =
|
||||
@@ -40,13 +43,12 @@ export const RecordTableEffect = () => {
|
||||
} = useView();
|
||||
|
||||
useEffect(() => {
|
||||
if (
|
||||
mainIdentifierMapper &&
|
||||
basePathToShowPage &&
|
||||
mainIdentifierFieldMetadataId
|
||||
) {
|
||||
if (basePathToShowPage && mainIdentifierFieldMetadataId) {
|
||||
setObjectMetadataConfig?.({
|
||||
mainIdentifierMapper,
|
||||
labelIdentifierFieldPaths,
|
||||
imageIdentifierUrlField,
|
||||
imageIdentifierUrlPrefix,
|
||||
imageIdentifierFormat,
|
||||
basePathToShowPage,
|
||||
mainIdentifierFieldMetadataId,
|
||||
});
|
||||
@@ -55,8 +57,11 @@ export const RecordTableEffect = () => {
|
||||
basePathToShowPage,
|
||||
objectMetadataItem,
|
||||
mainIdentifierFieldMetadataId,
|
||||
mainIdentifierMapper,
|
||||
setObjectMetadataConfig,
|
||||
labelIdentifierFieldPaths,
|
||||
imageIdentifierUrlField,
|
||||
imageIdentifierUrlPrefix,
|
||||
imageIdentifierFormat,
|
||||
]);
|
||||
|
||||
useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user