Added hashes calculate and fix hashes problems

This commit is contained in:
2026-06-27 19:24:55 +02:00
parent 593479f41f
commit 43018e5aae
4 changed files with 46 additions and 2 deletions

View File

@@ -34,7 +34,8 @@ class HashesUpload extends Component
public function mount( array $oldHashes = [] ): void
{
foreach ($oldHashes as $hash) {
$this->addHash( $hash['filename'], $hash['hash_crc32'], $hash['hash_sha1'], $hash['verified'] );
if( isset( $hash['filename'], $hash['hash_crc32'], $hash['hash_sha1'], $hash['verified'] ) )
$this->addHash( $hash['filename'], $hash['hash_crc32'], $hash['hash_sha1'], $hash['verified'] );
}
}