Skip to content

Commit

Permalink
Regression: Assets & Slack Bridge Setting Page not rendering (#25629)
Browse files Browse the repository at this point in the history
* fix: RoomPickSettingInput

* fix: assets page broken
  • Loading branch information
dougfabris committed May 25, 2022
1 parent ca4c020 commit 2452448
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Expand Up @@ -3,7 +3,7 @@ import { useToastMessageDispatch, useMethod, useTranslation } from '@rocket.chat
import { Random } from 'meteor/random';
import React, { ChangeEventHandler, DragEvent, ReactElement } from 'react';

import './AssetSettingInput.css';
import './AssetSettingInput.styles.css';

type AssetSettingInputProps = {
_id: string;
Expand Down
Expand Up @@ -22,7 +22,7 @@ type RoomPickSettingInputProps = {
function RoomPickSettingInput({
_id,
label,
value,
value = [],
placeholder,
readonly,
autocomplete,
Expand All @@ -31,6 +31,8 @@ function RoomPickSettingInput({
onChangeValue,
onResetButtonClick,
}: RoomPickSettingInputProps): ReactElement {
value = value || [];

const wrapperRef = useRef() as MutableRefObject<HTMLDivElement>;
const valueRef = useRef(value);

Expand Down

0 comments on commit 2452448

Please sign in to comment.