multiple: set pagination defaults
Set pagination defaults, otherwise these might be `undefined`.
This commit is contained in:
parent
bad77421ae
commit
4125a9cd3b
8 changed files with 36 additions and 15 deletions
|
|
@ -28,6 +28,7 @@ import BlueprintVersionFilter from '../Blueprints/BlueprintVersionFilter';
|
|||
import { BuildImagesButton } from '../Blueprints/BuildImagesButton';
|
||||
import { DeleteBlueprintModal } from '../Blueprints/DeleteBlueprintModal';
|
||||
import { EditBlueprintButton } from '../Blueprints/EditBlueprintButton';
|
||||
import { SEARCH_INPUT } from '../../constants';
|
||||
|
||||
interface imagesTableToolbarProps {
|
||||
itemCount: number;
|
||||
|
|
@ -47,7 +48,8 @@ const ImagesTableToolbar: React.FC<imagesTableToolbarProps> = ({
|
|||
const [showDeleteModal, setShowDeleteModal] = useState(false);
|
||||
const [showDiffModal, setShowDiffModal] = useState(false);
|
||||
const selectedBlueprintId = useAppSelector(selectSelectedBlueprintId);
|
||||
const blueprintSearchInput = useAppSelector(selectBlueprintSearchInput);
|
||||
const blueprintSearchInput =
|
||||
useAppSelector(selectBlueprintSearchInput) || SEARCH_INPUT;
|
||||
|
||||
const {
|
||||
data: blueprintsComposes,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue