mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-26 06:11:15 +00:00
Slight refactor
This commit is contained in:
parent
e9b1a8324f
commit
61acd39be1
1 changed files with 2 additions and 2 deletions
|
@ -234,8 +234,8 @@ export class Post extends Component<any, PostState> {
|
|||
}: InitialFetchRequest): Promise<PostData> {
|
||||
const pathSplit = path.split("/");
|
||||
|
||||
const id = pathSplit.at(2) ? Number(pathSplit.at(2)) : undefined;
|
||||
const comment_id = pathSplit.at(4) ? Number(pathSplit.at(4)) : undefined;
|
||||
const id = getIdFromString(pathSplit.at(2));
|
||||
const comment_id = getIdFromString(pathSplit.at(4));
|
||||
|
||||
const postForm: GetPost = {
|
||||
auth,
|
||||
|
|
Loading…
Reference in a new issue