Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MeyerPV committed Nov 20, 2024
1 parent a051e96 commit efc2f2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const CommonBreadcrumbs: FC<CommonBreadcrumbsProps> = (props) => {
const { activeTab } = props;
const { getCommonPagePath } = useRoutesContext();
const { common, parentCommons } = useCommonDataContext();
const commonAction = useSelector(selectCommonAction(common.id));
const commonAction = useSelector(selectCommonAction);
const items: BreadcrumbItem[] = getBreadcrumbItems({
activeTab,
common,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const FeedTab: FC<FeedTabProps> = (props) => {
const [chatColumnRef, { width: chatWidth }] = useMeasure();
const user = useSelector(selectUser());
const isTabletView = useIsTabletView();
const commonAction = useSelector(selectCommonAction(common.id));
const commonAction = useSelector(selectCommonAction);
const allowedFeedActions = !commonAction ? [FeedAction.NewStream] : [];

const hasAccessToChat = useMemo(
Expand Down
2 changes: 1 addition & 1 deletion src/pages/commonFeed/CommonFeed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ const CommonFeedComponent: FC<CommonFeedProps> = (props) => {
(typeof sharedFeedItemIdQueryParam === "string" &&
sharedFeedItemIdQueryParam) ||
null;
const commonAction = useSelector(selectCommonAction(commonId));
const commonAction = useSelector(selectCommonAction);
const createdOptimisticFeedItems = useSelector(
selectCreatedOptimisticFeedItems,
);
Expand Down

0 comments on commit efc2f2c

Please sign in to comment.