mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-04 09:28:11 +00:00
fix uuid
This commit is contained in:
1 parent
f4cbec9d7c
commit
8a603cd79c
1 file changed
+2
-1
@@ -1,4 +1,5 @@
|
||||
import React, { useState } from 'react';
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
import { SessionWrapper } from '@storyteller/components/src/session/SessionWrapper';
|
||||
import { TtsModelListItem } from '@storyteller/components/src/api/tts/ListTtsModels';
|
||||
import { TwitchEventRule } from '@storyteller/components/src/api/storyteller/twitch_event_rules/GetTwitchEventRule';
|
||||
@@ -69,7 +70,7 @@ function TtsConfigsCreateRulePage(props: Props) {
|
||||
// TODO: UUID idempotency token that updates on every model change.
|
||||
|
||||
const request : CreateTwitchEventRuleRequest = {
|
||||
idempotency_token: 'todo',
|
||||
idempotency_token: uuidv4(),
|
||||
event_category: twitchEventCategory,
|
||||
event_match_predicate: newEventMatchPredicate,
|
||||
event_response: newEventResponse,
|
||||
|
||||
Reference in new issue
Block a user