mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 12:54:38 +03:00
Fix scraped tag creation (#1436)
This commit is contained in:
@@ -333,9 +333,8 @@ export const GalleryScrapeDialog: React.FC<IGalleryScrapeDialogProps> = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
||||||
let tagInput: GQL.TagCreateInput = { name: "" };
|
const tagInput: GQL.TagCreateInput = { name: toCreate.name ?? "" };
|
||||||
try {
|
try {
|
||||||
tagInput = Object.assign(tagInput, toCreate);
|
|
||||||
const result = await createTag({
|
const result = await createTag({
|
||||||
variables: {
|
variables: {
|
||||||
input: tagInput,
|
input: tagInput,
|
||||||
|
|||||||
@@ -221,9 +221,8 @@ export const PerformerEditPanel: React.FC<IPerformerDetails> = ({
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
||||||
let tagInput: GQL.TagCreateInput = { name: "" };
|
const tagInput: GQL.TagCreateInput = { name: toCreate.name ?? "" };
|
||||||
try {
|
try {
|
||||||
tagInput = Object.assign(tagInput, toCreate);
|
|
||||||
const result = await createTag({
|
const result = await createTag({
|
||||||
variables: {
|
variables: {
|
||||||
input: tagInput,
|
input: tagInput,
|
||||||
|
|||||||
@@ -314,9 +314,8 @@ export const PerformerScrapeDialog: React.FC<IPerformerScrapeDialogProps> = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
||||||
let tagInput: GQL.TagCreateInput = { name: "" };
|
const tagInput: GQL.TagCreateInput = { name: toCreate.name ?? "" };
|
||||||
try {
|
try {
|
||||||
tagInput = Object.assign(tagInput, toCreate);
|
|
||||||
const result = await createTag({
|
const result = await createTag({
|
||||||
variables: {
|
variables: {
|
||||||
input: tagInput,
|
input: tagInput,
|
||||||
|
|||||||
@@ -445,9 +445,8 @@ export const SceneScrapeDialog: React.FC<ISceneScrapeDialogProps> = (
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
async function createNewTag(toCreate: GQL.ScrapedSceneTag) {
|
||||||
let tagInput: GQL.TagCreateInput = { name: "" };
|
const tagInput: GQL.TagCreateInput = { name: toCreate.name ?? "" };
|
||||||
try {
|
try {
|
||||||
tagInput = Object.assign(tagInput, toCreate);
|
|
||||||
const result = await createTag({
|
const result = await createTag({
|
||||||
variables: {
|
variables: {
|
||||||
input: tagInput,
|
input: tagInput,
|
||||||
|
|||||||
Reference in New Issue
Block a user