Fix favorites add/remove from table context menu (#2571)
* Fix favorites add/remove from table context menu * Fixed console.log --------- Co-authored-by: Charles Bochet <charlesBochet@users.noreply.github.com>
This commit is contained in:
@ -29,7 +29,9 @@ export const Companies = () => {
|
||||
recordTableScopeId: 'companies',
|
||||
});
|
||||
const upsertTableRowIds = useUpsertTableRowId();
|
||||
const { triggerOptimisticEffects } = useOptimisticEffect('Company');
|
||||
const { triggerOptimisticEffects } = useOptimisticEffect({
|
||||
objectNameSingular: 'company',
|
||||
});
|
||||
|
||||
const handleAddButtonClick = async () => {
|
||||
const newCompanyId: string = v4();
|
||||
|
||||
@ -27,7 +27,9 @@ export const People = () => {
|
||||
recordTableScopeId: 'people',
|
||||
});
|
||||
const upsertTableRowIds = useUpsertTableRowId();
|
||||
const { triggerOptimisticEffects } = useOptimisticEffect('Person');
|
||||
const { triggerOptimisticEffects } = useOptimisticEffect({
|
||||
objectNameSingular: 'Person',
|
||||
});
|
||||
|
||||
const handleAddButtonClick = async () => {
|
||||
const newPersonId: string = v4();
|
||||
|
||||
@ -42,6 +42,7 @@ const StyledH1Title = styled(H1Title)`
|
||||
|
||||
export const SettingsDevelopersApiKeys = () => {
|
||||
const navigate = useNavigate();
|
||||
|
||||
const [apiKeys, setApiKeys] = useState<Array<ApiFieldItem>>([]);
|
||||
const { registerOptimisticEffect } = useOptimisticEffect('apiKeyV2');
|
||||
const { foundObjectMetadataItem } = useFindOneObjectMetadataItem({
|
||||
|
||||
Reference in New Issue
Block a user