Skip to content

Commit

Permalink
typo in No Fetch in Mutation section (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
ifeelBALANCED authored Aug 28, 2024
1 parent 30f1dba commit ca41502
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions apps/website/changelog/cli.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ function mergeChangelogs(packages) {
)) {
const logForVersion = [];
for (const { name: packageName, changes: packageChanges } of packages) {
const pacakgeChangesEntries = Object.entries(packageChanges)
const packageChangesEntries = Object.entries(packageChanges)
.map(([type, items]) => [type, excludeTrashUpdates(items)])
.filter(([, items]) => items.length > 0);

let hasChanges = pacakgeChangesEntries.length > 0;
let hasChanges = packageChangesEntries.length > 0;

if (!hasChanges) {
continue;
}

logForVersion.push(['para', `::: details ${packageName}`]);

for (const [type, items] of pacakgeChangesEntries) {
for (const [type, items] of packageChangesEntries) {
logForVersion.push(['para', ['strong', type]], ...items);
}

Expand Down
2 changes: 1 addition & 1 deletion apps/website/docs/recipes/no_fetch.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import { createMutation } from '@farfetched/core';
import axios from 'axios';

const loginMutation = createMutation({
async handler({ login, password } {
async handler({ login, password }) {
const response = await axios.post('/login', { login, password })

return response.data;
Expand Down

0 comments on commit ca41502

Please sign in to comment.