Skip to content

Commit 177b9c9

Browse files
authored
Merge pull request galaxyproject#20734 from itisAliRH/fix-vue-tsc-buffer-error
Fix Client Linting Run Error
2 parents 1452581 + 2319dca commit 177b9c9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

client/src/composables/hashedUserId.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ function createSalt(): string {
2222
const bytes = new Uint8Array(16);
2323
crypto.getRandomValues(bytes);
2424

25-
return bufferToString(bytes);
25+
return bufferToString(bytes.buffer);
2626
}
2727

2828
const currentHash = ref<string | null>(null);

client/src/composables/zipExplorer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ export function useZipExplorer() {
152152
// workflows are usually relatively small.
153153
const fileData = await entry.data();
154154
const formData = new FormData();
155-
formData.append("archive_file", new Blob([fileData]), file.name);
155+
formData.append("archive_file", new Blob([new Uint8Array(fileData)]), file.name);
156156

157157
await axios.post(getFullAppUrl("api/workflows"), formData);
158158
} catch (e) {

0 commit comments

Comments
 (0)