create-effect-fix
This commit is contained in:
parent
5e8c99332f
commit
0146a5cae2
|
@ -44,7 +44,7 @@ export const PublishSettings = (props: Props) => {
|
|||
const [topics, setTopics] = createSignal<Topic[]>(sortedTopics())
|
||||
|
||||
createEffect(async () => {
|
||||
await loadAllTopics()
|
||||
if (!sortedTopics()) await loadAllTopics()
|
||||
setTopics(sortedTopics())
|
||||
})
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import { gql } from '@urql/core'
|
||||
|
||||
export default gql`
|
||||
mutation DeleteReactionMutation($id: Int!) {
|
||||
delete_reaction(id: $id) {
|
||||
mutation DeleteReactionMutation($reaction_id: Int!) {
|
||||
delete_reaction(reaction_id: $reaction_id) {
|
||||
error
|
||||
reaction {
|
||||
id
|
||||
|
|
Loading…
Reference in New Issue
Block a user