Skip to content

Commit

Permalink
Merge stable into release
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmz committed Nov 10, 2024
2 parents 00a617e + 9292485 commit 687ff96
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.137.0] - Not released

## [1.136.0] - 2024-11-08
### Changed
- The advanced search form is refactored to support the new search operators.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "reactive-pepyatka",
"version": "1.136.0",
"version": "1.137.0",
"description": "",
"main": "index.js",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default function Footer({ short }) {
return (
<footer className="footer">
<p role="navigation">
&copy; FreeFeed 1.136.0 (Nov 8, 2024)
&copy; FreeFeed 1.137.0 (Not released)
<br />
<Link to="/about">About</Link>
{' | '}
Expand Down
9 changes: 5 additions & 4 deletions src/components/uploader/uploader.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export function useUploader({

const doUploadFile = useCallback(
(file) => {
if (fileIds.length >= maxCount) {
if (fileIds.length + unfinishedFiles.size >= maxCount) {
// No more files accepting
return;
}
Expand Down Expand Up @@ -123,7 +123,8 @@ export function useUploader({
...initialFileIds,
...[...uploadIds]
.filter((id) => statuses[id]?.success)
.map((id) => allUploads[id].attachment.id),
.map((id) => allUploads[id]?.attachment.id)
.filter(Boolean),
];

// Detect successful uploads
Expand Down Expand Up @@ -166,8 +167,8 @@ export function useUploader({
const clearUploads = useCallback(() => {
uploadIds.clear();
unfinishedFiles.clear();
setFileIdsLocally(initialFileIds);
}, [initialFileIds, setFileIdsLocally, unfinishedFiles, uploadIds]);
setFileIdsLocally(givenFileIds);
}, [givenFileIds, setFileIdsLocally, unfinishedFiles, uploadIds]);

return {
isUploading,
Expand Down

0 comments on commit 687ff96

Please sign in to comment.