Skip to content

Commit

Permalink
Deploy commit
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterKottas committed Nov 10, 2024
1 parent fe049ff commit 13f3860
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 17 deletions.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/iframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
window['DOCS_OPTIONS'] = {"defaultName":"Docs","autodocs":"tag"};</script><script type="module">import './sb-preview/runtime.js';


import './runtime~main.3819e906.iframe.bundle.js';
import './runtime~main.93042332.iframe.bundle.js';

import './659.2268d502.iframe.bundle.js';

Expand Down
2 changes: 1 addition & 1 deletion docs/project.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"generatedAt":1731233505829,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.19"},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"7.0.18","storybookVersionSpecifier":"7.0.18","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.0.18"},"@storybook/react":{"version":"7.0.18"},"@storybook/react-webpack5":{"version":"7.0.18"},"@storybook/testing-library":{"version":"0.0.14-next.2"},"eslint-plugin-storybook":{"version":"0.6.12"},"storybook":{"version":"7.0.18"}},"addons":{"@storybook/addon-links":{"version":"7.0.18"},"@storybook/addon-essentials":{"version":"7.0.18"},"@storybook/addon-interactions":{"version":"7.0.18"}}}
{"generatedAt":1731233803366,"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"packageManager":{"type":"yarn","version":"1.22.19"},"framework":{"name":"@storybook/react-webpack5","options":{}},"builder":"@storybook/builder-webpack5","renderer":"@storybook/react","storybookVersion":"7.0.18","storybookVersionSpecifier":"7.0.18","language":"typescript","storybookPackages":{"@storybook/blocks":{"version":"7.0.18"},"@storybook/react":{"version":"7.0.18"},"@storybook/react-webpack5":{"version":"7.0.18"},"@storybook/testing-library":{"version":"0.0.14-next.2"},"eslint-plugin-storybook":{"version":"0.6.12"},"storybook":{"version":"7.0.18"}},"addons":{"@storybook/addon-links":{"version":"7.0.18"},"@storybook/addon-essentials":{"version":"7.0.18"},"@storybook/addon-interactions":{"version":"7.0.18"}}}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 20 additions & 13 deletions src/lib/components/tags/Tags.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -660,23 +660,30 @@ export class TagsRaw<
() => this.setState(() => ({ fetchingExistingTags: true })),
this.props.loadingDelayMs
);
this.props
.fetchExistingTags(startsWith, this.props.tags)
.then((fetchedExistingTags) => {
if (fetchedExistingTags) {
const prom = this.props.fetchExistingTags(startsWith, this.props.tags);
if (prom) {
prom
.then((fetchedExistingTags) => {
if (fetchedExistingTags) {
clearTimeout(timer);
this.setState(() => ({
fetchedExistingTags,
fetchingExistingTags: false,
}));
}
})
.catch(() => {
clearTimeout(timer);
this.setState(() => ({
fetchedExistingTags,
fetchingExistingTags: false,
}));
}
})
.catch(() => {
clearTimeout(timer);
this.setState(() => ({
fetchingExistingTags: false,
}));
});
});
} else {
clearTimeout(timer);
this.setState(() => ({
fetchingExistingTags: false,
}));
}
}
}

Expand Down

0 comments on commit 13f3860

Please sign in to comment.