Update createText function call to remove sortOrder parameter

This commit is contained in:
2026-02-01 01:50:54 +01:00
parent 3970a30f59
commit 4d61e4d5cc

View File

@@ -850,15 +850,14 @@ export default function App() {
const filename = filePath.split(/[\/]/).pop() || DEFAULT_TITLE;
const title = filename.replace(/\.(txt|md)$/i, "") || DEFAULT_TITLE;
const contents = await readTextFile(filePath);
const sortOrder = getNextTextSortOrder(null);
const { textId } = await createText(title, contents, null, sortOrder);
const { textId } = await createText(title, contents, null);
await refreshTexts();
setSelectedTextId(textId);
} catch (error) {
console.error("Failed to open text file", error);
}
},
[getNextTextSortOrder, refreshTexts]
[refreshTexts]
);
const handleFilePaths = useCallback(